account for FAN_OFF_PWM

This commit is contained in:
Scott Lahteine
2022-10-17 14:43:39 -05:00
parent b3e3a58e8b
commit 44589a964d
+1 -1
View File
@@ -82,7 +82,7 @@ void ControllerFan::update() {
#if FAN_KICKSTART_TIME
static millis_t fan_kick_end = 0;
if (speed) {
if (speed != FAN_OFF_PWM) {
if (!fan_kick_end) {
fan_kick_end = ms + FAN_KICKSTART_TIME; // May be longer based on slow update interval for controller fn check. Sets minimum
speed = 255;