Fix Busy State in temperature.cpp

Fix #11954
This commit is contained in:
Scott Lahteine 2018-09-29 17:03:23 -05:00
parent 70e7a465d8
commit d89d8fe852

View File

@ -2435,10 +2435,8 @@ void Temperature::isr() {
#define TEMP_CONDITIONS (wants_to_cool ? isCoolingHotend(target_extruder) : isHeatingHotend(target_extruder))
#endif
#if DISABLED(BUSY_WHILE_HEATING)
#if ENABLED(HOST_KEEPALIVE_FEATURE)
const MarlinBusyState old_busy_state = gcode.busy_state;
#endif
#if DISABLED(BUSY_WHILE_HEATING) && ENABLED(HOST_KEEPALIVE_FEATURE)
const GcodeSuite::MarlinBusyState old_busy_state = gcode.busy_state;
KEEPALIVE_STATE(NOT_BUSY);
#endif
@ -2564,10 +2562,8 @@ void Temperature::isr() {
wait_for_heatup = true;
millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
#if DISABLED(BUSY_WHILE_HEATING)
#if ENABLED(HOST_KEEPALIVE_FEATURE)
const MarlinBusyState old_busy_state = gcode.busy_state;
#endif
#if DISABLED(BUSY_WHILE_HEATING) && ENABLED(HOST_KEEPALIVE_FEATURE)
const GcodeSuite::MarlinBusyState old_busy_state = gcode.busy_state;
KEEPALIVE_STATE(NOT_BUSY);
#endif