Browse Source

Group the fail case in one negation (PR#2572)

Scott Lahteine 9 years ago
parent
commit
0f5ada8cbd
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      Marlin/cardreader.cpp

+ 1
- 2
Marlin/cardreader.cpp View File

@@ -481,8 +481,7 @@ void CardReader::write_command(char *buf) {
481 481
 }
482 482
 
483 483
 void CardReader::checkautostart(bool force) {
484
-  if (!force && (!autostart_stilltocheck || next_autostart_ms < millis()))
485
-    return;
484
+  if (!(force || !autostart_stilltocheck || next_autostart_ms >= millis())) return;
486 485
 
487 486
   autostart_stilltocheck = false;
488 487
 

Loading…
Cancel
Save