Sfoglia il codice sorgente

Fix bad logic in autostart

As pointed out by @marcio-ao in #7638
Scott Lahteine 7 anni fa
parent
commit
ac2ac99e15
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Marlin/cardreader.cpp

+ 1
- 1
Marlin/cardreader.cpp Vedi File

@@ -532,7 +532,7 @@ void CardReader::write_command(char *buf) {
532 532
 }
533 533
 
534 534
 void CardReader::checkautostart(bool force) {
535
-  if (!force && (!autostart_stilltocheck || ELAPSED(millis(), next_autostart_ms)))
535
+  if (!force && (!autostart_stilltocheck || PENDING(millis(), next_autostart_ms)))
536 536
     return;
537 537
 
538 538
   autostart_stilltocheck = false;

Loading…
Annulla
Salva