Skip to content
Snippets Groups Projects
Commit 454cbcce authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Fix the wait loop in M0 / M1

parent 6bfae5de
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ void GcodeSuite::M0_M1() { ...@@ -102,7 +102,7 @@ void GcodeSuite::M0_M1() {
#endif #endif
if (ms > 0) ms += millis(); // wait until this time for a click 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 #if HAS_LEDS_OFF_FLAG
printerEventLEDs.onResumeAfterWait(); printerEventLEDs.onResumeAfterWait();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment