millis_t is not an array

This commit is contained in:
Scott Lahteine
2022-10-17 14:34:42 -05:00
parent 16106e3961
commit b3e3a58e8b
+2 -3
View File
@@ -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;
}