Browse Source

Fix the wait loop in M0 / M1

Scott Lahteine 4 years ago
parent
commit
454cbcce51
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/lcd/M0_M1.cpp

+ 1
- 1
Marlin/src/gcode/lcd/M0_M1.cpp View File

@@ -102,7 +102,7 @@ void GcodeSuite::M0_M1() {
102 102
   #endif
103 103
 
104 104
   if (ms > 0) ms += millis();  // wait until this time for a click
105
-  while (wait_for_user || (ms > 0 && PENDING(millis(), ms))) idle();
105
+  while (wait_for_user && (ms == 0 || PENDING(millis(), ms))) idle();
106 106
 
107 107
   #if HAS_LEDS_OFF_FLAG
108 108
     printerEventLEDs.onResumeAfterWait();

Loading…
Cancel
Save