Browse Source

Fix Busy State in temperature.cpp

Fix #11954
pull/1/head
Scott Lahteine 6 years ago
parent
commit
d89d8fe852
  1. 12
      Marlin/src/module/temperature.cpp

12
Marlin/src/module/temperature.cpp

@ -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

Loading…
Cancel
Save