ソースを参照

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

Scott Lahteine 10年前
コミット
0f5ada8cbd
1個のファイルの変更1行の追加2行の削除
  1. 1
    2
      Marlin/cardreader.cpp

+ 1
- 2
Marlin/cardreader.cpp ファイルの表示

@@ -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
 

読み込み中…
キャンセル
保存