Fix SINGLENOZZLE fan speed bug (#19152)

This commit is contained in:
thordarsen 2020-08-26 06:23:56 -04:00 committed by GitHub
parent 91c8c6d96e
commit 195d20cef2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,9 +210,10 @@ const char str_t_thermal_runaway[] PROGMEM = STR_T_THERMAL_RUNAWAY,
if (target < EXTRUDERS) singlenozzle_fan_speed[target] = speed; if (target < EXTRUDERS) singlenozzle_fan_speed[target] = speed;
return; return;
} }
target = 0; // Always use fan index 0 with SINGLENOZZLE
#endif #endif
TERN_(SINGLENOZZLE, target = 0); // Always use fan index 0 with SINGLENOZZLE
if (target >= FAN_COUNT) return; if (target >= FAN_COUNT) return;
fan_speed[target] = speed; fan_speed[target] = speed;