From 454cbcce51cd6e18d550bfd5e4799e39cbbc216c Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 25 Feb 2020 12:20:40 -0600 Subject: [PATCH] Fix the wait loop in M0 / M1 --- Marlin/src/gcode/lcd/M0_M1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/lcd/M0_M1.cpp b/Marlin/src/gcode/lcd/M0_M1.cpp index bf6a3d23d5..2f110c5c55 100644 --- a/Marlin/src/gcode/lcd/M0_M1.cpp +++ b/Marlin/src/gcode/lcd/M0_M1.cpp @@ -102,7 +102,7 @@ void GcodeSuite::M0_M1() { #endif if (ms > 0) ms += millis(); // wait until this time for a click - while (wait_for_user || (ms > 0 && PENDING(millis(), ms))) idle(); + while (wait_for_user && (ms == 0 || PENDING(millis(), ms))) idle(); #if HAS_LEDS_OFF_FLAG printerEventLEDs.onResumeAfterWait();