Przeglądaj źródła

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

Scott Lahteine 10 lat temu
rodzic
commit
0f5ada8cbd
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1
    2
      Marlin/cardreader.cpp

+ 1
- 2
Marlin/cardreader.cpp Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz