Browse Source

Fix bad logic in autostart

As pointed out by @marcio-ao in #7638
Scott Lahteine 7 years ago
parent
commit
ac2ac99e15
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/cardreader.cpp

+ 1
- 1
Marlin/cardreader.cpp View 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…
Cancel
Save