Browse Source

Restore test


PR#2572 Changed this because of faulty Boolean Logic

NOT(A OR (NOT B) OR (NOT C)) !=

(NOT A) AND ((NOT B) OR C))


Besides, the compiler should be smart enough to
optimize this without help from the programmer
Richard Wackerbarth 9 years ago
parent
commit
35afea1c0e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/cardreader.cpp

+ 2
- 1
Marlin/cardreader.cpp View File

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

Loading…
Cancel
Save