mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Fix M0/M1 broken wait loop (#16921)
This commit is contained in:
parent
b9b29bf4c0
commit
7bf3581b02
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user