Browse Source

🐛 No HOTEND_LOOP with EXTRUDERS 0 (#22245)

Katelyn Schiesser 4 years ago
parent
commit
1f6768a87e
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/src/feature/power.cpp

+ 4
- 1
Marlin/src/feature/power.cpp View File

@@ -85,7 +85,10 @@ bool Power::is_power_needed() {
85 85
     #endif
86 86
   ) return true;
87 87
 
88
-  HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
88
+  #if HAS_HOTEND
89
+    HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
90
+  #endif
91
+
89 92
   if (TERN0(HAS_HEATED_BED, thermalManager.degTargetBed() > 0 || thermalManager.temp_bed.soft_pwm_amount > 0)) return true;
90 93
 
91 94
   #if HAS_HOTEND && AUTO_POWER_E_TEMP

Loading…
Cancel
Save