|
|
@ -7302,7 +7302,9 @@ inline void gcode_M109() { |
|
|
|
wait_for_heatup = true; |
|
|
|
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0; |
|
|
|
|
|
|
|
KEEPALIVE_STATE(NOT_BUSY); |
|
|
|
#if DISABLED(BUSY_WHILE_HEATING) |
|
|
|
KEEPALIVE_STATE(NOT_BUSY); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(PRINTER_EVENT_LEDS) |
|
|
|
const float start_temp = thermalManager.degHotend(target_extruder); |
|
|
@ -7385,7 +7387,9 @@ inline void gcode_M109() { |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
#if DISABLED(BUSY_WHILE_HEATING) |
|
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
#if HAS_TEMP_BED |
|
|
@ -7429,7 +7433,9 @@ inline void gcode_M109() { |
|
|
|
wait_for_heatup = true; |
|
|
|
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0; |
|
|
|
|
|
|
|
KEEPALIVE_STATE(NOT_BUSY); |
|
|
|
#if DISABLED(BUSY_WHILE_HEATING) |
|
|
|
KEEPALIVE_STATE(NOT_BUSY); |
|
|
|
#endif |
|
|
|
|
|
|
|
target_extruder = active_extruder; // for print_heaterstates
|
|
|
|
|
|
|
@ -7504,7 +7510,9 @@ inline void gcode_M109() { |
|
|
|
} while (wait_for_heatup && TEMP_BED_CONDITIONS); |
|
|
|
|
|
|
|
if (wait_for_heatup) LCD_MESSAGEPGM(MSG_BED_DONE); |
|
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
#if DISABLED(BUSY_WHILE_HEATING) |
|
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
#endif |
|
|
|
} |
|
|
|
|
|
|
|
#endif // HAS_TEMP_BED
|
|
|
@ -8818,11 +8826,15 @@ inline void gcode_M303() { |
|
|
|
if (WITHIN(e, 0, HOTENDS - 1)) |
|
|
|
target_extruder = e; |
|
|
|
|
|
|
|
KEEPALIVE_STATE(NOT_BUSY); // don't send "busy: processing" messages during autotune output
|
|
|
|
#if DISABLED(BUSY_WHILE_HEATING) |
|
|
|
KEEPALIVE_STATE(NOT_BUSY); |
|
|
|
#endif |
|
|
|
|
|
|
|
thermalManager.PID_autotune(temp, e, c, u); |
|
|
|
|
|
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
#if DISABLED(BUSY_WHILE_HEATING) |
|
|
|
KEEPALIVE_STATE(IN_HANDLER); |
|
|
|
#endif |
|
|
|
#else |
|
|
|
SERIAL_ERROR_START(); |
|
|
|
SERIAL_ERRORLNPGM(MSG_ERR_M303_DISABLED); |
|
|
|