소스 검색

Fix Busy State in temperature.cpp

Fix #11954
Scott Lahteine 6 년 전
부모
커밋
d89d8fe852
1개의 변경된 파일4개의 추가작업 그리고 8개의 파일을 삭제
  1. 4
    8
      Marlin/src/module/temperature.cpp

+ 4
- 8
Marlin/src/module/temperature.cpp 파일 보기

@@ -2435,10 +2435,8 @@ void Temperature::isr() {
2435 2435
         #define TEMP_CONDITIONS (wants_to_cool ? isCoolingHotend(target_extruder) : isHeatingHotend(target_extruder))
2436 2436
       #endif
2437 2437
 
2438
-      #if DISABLED(BUSY_WHILE_HEATING)
2439
-        #if ENABLED(HOST_KEEPALIVE_FEATURE)
2440
-          const MarlinBusyState old_busy_state = gcode.busy_state;
2441
-        #endif
2438
+      #if DISABLED(BUSY_WHILE_HEATING) && ENABLED(HOST_KEEPALIVE_FEATURE)
2439
+        const GcodeSuite::MarlinBusyState old_busy_state = gcode.busy_state;
2442 2440
         KEEPALIVE_STATE(NOT_BUSY);
2443 2441
       #endif
2444 2442
 
@@ -2564,10 +2562,8 @@ void Temperature::isr() {
2564 2562
       wait_for_heatup = true;
2565 2563
       millis_t now, next_temp_ms = 0, next_cool_check_ms = 0;
2566 2564
 
2567
-      #if DISABLED(BUSY_WHILE_HEATING)
2568
-        #if ENABLED(HOST_KEEPALIVE_FEATURE)
2569
-          const MarlinBusyState old_busy_state = gcode.busy_state;
2570
-        #endif
2565
+      #if DISABLED(BUSY_WHILE_HEATING) && ENABLED(HOST_KEEPALIVE_FEATURE)
2566
+        const GcodeSuite::MarlinBusyState old_busy_state = gcode.busy_state;
2571 2567
         KEEPALIVE_STATE(NOT_BUSY);
2572 2568
       #endif
2573 2569
 

Loading…
취소
저장