|
@@ -332,7 +332,7 @@ uint8_t active_extruder = 0;
|
332
|
332
|
// Relative Mode. Enable with G91, disable with G90.
|
333
|
333
|
static bool relative_mode = false;
|
334
|
334
|
|
335
|
|
-bool cancel_heatup = false;
|
|
335
|
+bool wait_for_heatup = true;
|
336
|
336
|
|
337
|
337
|
const char errormagic[] PROGMEM = "Error:";
|
338
|
338
|
const char echomagic[] PROGMEM = "echo:";
|
|
@@ -1107,7 +1107,7 @@ inline void get_serial_commands() {
|
1107
|
1107
|
|
1108
|
1108
|
// If command was e-stop process now
|
1109
|
1109
|
if (strcmp(command, "M112") == 0) kill(PSTR(MSG_KILLED));
|
1110
|
|
- if (strcmp(command, "M108") == 0) cancel_heatup = true;
|
|
1110
|
+ if (strcmp(command, "M108") == 0) wait_for_heatup = false;
|
1111
|
1111
|
|
1112
|
1112
|
#if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0
|
1113
|
1113
|
last_command_time = ms;
|
|
@@ -4540,9 +4540,7 @@ inline void gcode_M105() {
|
4540
|
4540
|
/**
|
4541
|
4541
|
* M108: Cancel heatup and wait for the hotend and bed, this G-code is asynchronously handled in the get_serial_commands() parser
|
4542
|
4542
|
*/
|
4543
|
|
-inline void gcode_M108() {
|
4544
|
|
- cancel_heatup = true;
|
4545
|
|
-}
|
|
4543
|
+inline void gcode_M108() { wait_for_heatup = false; }
|
4546
|
4544
|
|
4547
|
4545
|
/**
|
4548
|
4546
|
* M109: Sxxx Wait for extruder(s) to reach temperature. Waits only when heating.
|
|
@@ -4602,7 +4600,7 @@ inline void gcode_M109() {
|
4602
|
4600
|
|
4603
|
4601
|
float theTarget = -1.0, old_temp = 9999.0;
|
4604
|
4602
|
bool wants_to_cool = false;
|
4605
|
|
- cancel_heatup = false;
|
|
4603
|
+ wait_for_heatup = true;
|
4606
|
4604
|
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
|
4607
|
4605
|
|
4608
|
4606
|
KEEPALIVE_STATE(NOT_BUSY);
|
|
@@ -4666,7 +4664,7 @@ inline void gcode_M109() {
|
4666
|
4664
|
}
|
4667
|
4665
|
}
|
4668
|
4666
|
|
4669
|
|
- } while (!cancel_heatup && TEMP_CONDITIONS);
|
|
4667
|
+ } while (wait_for_heatup && TEMP_CONDITIONS);
|
4670
|
4668
|
|
4671
|
4669
|
LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
|
4672
|
4670
|
KEEPALIVE_STATE(IN_HANDLER);
|
|
@@ -4696,7 +4694,7 @@ inline void gcode_M109() {
|
4696
|
4694
|
|
4697
|
4695
|
float theTarget = -1.0, old_temp = 9999.0;
|
4698
|
4696
|
bool wants_to_cool = false;
|
4699
|
|
- cancel_heatup = false;
|
|
4697
|
+ wait_for_heatup = true;
|
4700
|
4698
|
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
|
4701
|
4699
|
|
4702
|
4700
|
KEEPALIVE_STATE(NOT_BUSY);
|
|
@@ -4760,7 +4758,7 @@ inline void gcode_M109() {
|
4760
|
4758
|
}
|
4761
|
4759
|
}
|
4762
|
4760
|
|
4763
|
|
- } while (!cancel_heatup && TEMP_BED_CONDITIONS);
|
|
4761
|
+ } while (wait_for_heatup && TEMP_BED_CONDITIONS);
|
4764
|
4762
|
|
4765
|
4763
|
LCD_MESSAGEPGM(MSG_BED_DONE);
|
4766
|
4764
|
KEEPALIVE_STATE(IN_HANDLER);
|