|
@@ -4464,6 +4464,8 @@ inline void gcode_M109() {
|
4464
|
4464
|
#define TEMP_CONDITIONS (wants_to_cool ? isCoolingHotend(target_extruder) : isHeatingHotend(target_extruder))
|
4465
|
4465
|
#endif //TEMP_RESIDENCY_TIME > 0
|
4466
|
4466
|
|
|
4467
|
+ KEEPALIVE_STATE(NOT_BUSY);
|
|
4468
|
+
|
4467
|
4469
|
cancel_heatup = false;
|
4468
|
4470
|
millis_t now, next_temp_ms = 0;
|
4469
|
4471
|
do {
|
|
@@ -4508,6 +4510,7 @@ inline void gcode_M109() {
|
4508
|
4510
|
} while (!cancel_heatup && TEMP_CONDITIONS);
|
4509
|
4511
|
|
4510
|
4512
|
LCD_MESSAGEPGM(MSG_HEATING_COMPLETE);
|
|
4513
|
+ KEEPALIVE_STATE(IN_HANDLER);
|
4511
|
4514
|
}
|
4512
|
4515
|
|
4513
|
4516
|
#if HAS_TEMP_BED
|
|
@@ -4541,6 +4544,7 @@ inline void gcode_M109() {
|
4541
|
4544
|
millis_t now, next_temp_ms = 0;
|
4542
|
4545
|
|
4543
|
4546
|
// Wait for temperature to come close enough
|
|
4547
|
+ KEEPALIVE_STATE(NOT_BUSY);
|
4544
|
4548
|
do {
|
4545
|
4549
|
now = millis();
|
4546
|
4550
|
if (ELAPSED(now, next_temp_ms)) { //Print Temp Reading every 1 second while heating up.
|
|
@@ -4580,6 +4584,7 @@ inline void gcode_M109() {
|
4580
|
4584
|
|
4581
|
4585
|
} while (!cancel_heatup && TEMP_BED_CONDITIONS);
|
4582
|
4586
|
LCD_MESSAGEPGM(MSG_BED_DONE);
|
|
4587
|
+ KEEPALIVE_STATE(IN_HANDLER);
|
4583
|
4588
|
}
|
4584
|
4589
|
|
4585
|
4590
|
#endif // HAS_TEMP_BED
|