Ver código fonte

Fix the wait loop in M0 / M1

Scott Lahteine 5 anos atrás
pai
commit
454cbcce51
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/src/gcode/lcd/M0_M1.cpp

+ 1
- 1
Marlin/src/gcode/lcd/M0_M1.cpp Ver arquivo

102
   #endif
102
   #endif
103
 
103
 
104
   if (ms > 0) ms += millis();  // wait until this time for a click
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
   #if HAS_LEDS_OFF_FLAG
107
   #if HAS_LEDS_OFF_FLAG
108
     printerEventLEDs.onResumeAfterWait();
108
     printerEventLEDs.onResumeAfterWait();

Carregando…
Cancelar
Salvar