From b3e3a58e8b8d27fc613848de77d66b0983bb44b7 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 17 Oct 2022 14:34:42 -0500 Subject: [PATCH] millis_t is not an array --- Marlin/src/feature/controllerfan.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Marlin/src/feature/controllerfan.cpp b/Marlin/src/feature/controllerfan.cpp index 0b54d0e84b..a67b0d1389 100644 --- a/Marlin/src/feature/controllerfan.cpp +++ b/Marlin/src/feature/controllerfan.cpp @@ -81,10 +81,9 @@ void ControllerFan::update() { ); #if FAN_KICKSTART_TIME - ms = millis(); - static millis_t fan_kick_end = { 0 }; + static millis_t fan_kick_end = 0; if (speed) { - if (fan_kick_end == 0) { + 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; }