Skip to content

Commit

Permalink
Fix SINGLENOZZLE fan speed bug (MarlinFirmware#19152)
Browse files Browse the repository at this point in the history
  • Loading branch information
thordarsen authored and thinkyhead committed Apr 29, 2021
1 parent 7769f19 commit f5e94cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ const char str_t_thermal_runaway[] PROGMEM = STR_T_THERMAL_RUNAWAY,
if (target < EXTRUDERS) singlenozzle_fan_speed[target] = speed;
return;
}
target = 0; // Always use fan index 0 with SINGLENOZZLE
#endif

TERN_(SINGLENOZZLE, target = 0); // Always use fan index 0 with SINGLENOZZLE

if (target >= FAN_COUNT) return;

fan_speed[target] = speed;
Expand Down

0 comments on commit f5e94cd

Please sign in to comment.