Преглед изворни кода

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 година
родитељ
комит
35afea1c0e
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      Marlin/cardreader.cpp

+ 2
- 1
Marlin/cardreader.cpp Прегледај датотеку

@@ -481,7 +481,8 @@ 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())) return;
484
+  if (!force && (!autostart_stilltocheck || next_autostart_ms < millis()))
485
+    return;
485 486
 
486 487
   autostart_stilltocheck = false;
487 488
 

Loading…
Откажи
Сачувај