Skip to content

Commit

Permalink
Fix M0/M1 broken wait loop (#16921)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored Feb 23, 2020
1 parent b9b29bf commit 7bf3581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/lcd/M0_M1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7bf3581

Please sign in to comment.