millis_t is not an array
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user