Skip to content

Commit

Permalink
🐛 No HOTEND_LOOP with EXTRUDERS 0 (MarlinFirmware#22245)
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbro authored and Steve-Airbox committed Aug 31, 2021
1 parent af109ee commit 9d51d03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Marlin/src/feature/power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ bool Power::is_power_needed() {
#endif
) return true;

HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
#if HAS_HOTEND
HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true;
#endif

if (TERN0(HAS_HEATED_BED, thermalManager.degTargetBed() > 0 || thermalManager.temp_bed.soft_pwm_amount > 0)) return true;

#if HAS_HOTEND && AUTO_POWER_E_TEMP
Expand Down

0 comments on commit 9d51d03

Please sign in to comment.