Fix the wait loop in M0 / M1
This commit is contained in:
parent
6bfae5de6f
commit
454cbcce51
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue