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

Loading…
Cancel
Save