Skip to content

Commit b245089

Browse files
slowbrothinkyhead
authored andcommitted
🐛 No HOTEND_LOOP with EXTRUDERS 0 (MarlinFirmware#22245)
1 parent ec3daad commit b245089

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Marlin/src/feature/power.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ bool Power::is_power_needed() {
8181
#endif
8282
) return true;
8383

84-
HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
84+
#if HAS_HOTEND
85+
HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
86+
#endif
87+
8588
if (TERN0(HAS_HEATED_BED, thermalManager.degTargetBed() > 0 || thermalManager.temp_bed.soft_pwm_amount > 0)) return true;
8689

8790
#if HAS_HOTEND && AUTO_POWER_E_TEMP

0 commit comments

Comments
 (0)