Explorar el Código

Fix bad logic in autostart

As pointed out by @marcio-ao in #7638
Scott Lahteine hace 7 años
padre
commit
ac2ac99e15
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/cardreader.cpp

+ 1
- 1
Marlin/cardreader.cpp Ver fichero

@@ -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…
Cancelar
Guardar