瀏覽代碼

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…
取消
儲存