From ac2ac99e150153fee9cc89d75f6c3c78dd6098ec Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 24 Sep 2017 17:52:35 -0500 Subject: [PATCH] Fix bad logic in autostart As pointed out by @marcio-ao in #7638 --- Marlin/cardreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/cardreader.cpp b/Marlin/cardreader.cpp index 0f4020291..89147d97b 100644 --- a/Marlin/cardreader.cpp +++ b/Marlin/cardreader.cpp @@ -532,7 +532,7 @@ void CardReader::write_command(char *buf) { } void CardReader::checkautostart(bool force) { - if (!force && (!autostart_stilltocheck || ELAPSED(millis(), next_autostart_ms))) + if (!force && (!autostart_stilltocheck || PENDING(millis(), next_autostart_ms))) return; autostart_stilltocheck = false;