Bugfix.
Use default nightLightDelay if ND present.
This commit is contained in:
parent
0cfda55b3a
commit
71d84fecba
@ -947,11 +947,13 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply)
|
|||||||
} else {
|
} else {
|
||||||
nightlightActive = true;
|
nightlightActive = true;
|
||||||
if (!aNlDef) nightlightDelayMins = getNumVal(&req, pos);
|
if (!aNlDef) nightlightDelayMins = getNumVal(&req, pos);
|
||||||
|
else nightlightDelayMins = nightlightDelayMinsDefault;
|
||||||
nightlightStartTime = millis();
|
nightlightStartTime = millis();
|
||||||
}
|
}
|
||||||
} else if (aNlDef)
|
} else if (aNlDef)
|
||||||
{
|
{
|
||||||
nightlightActive = true;
|
nightlightActive = true;
|
||||||
|
nightlightDelayMins = nightlightDelayMinsDefault;
|
||||||
nightlightStartTime = millis();
|
nightlightStartTime = millis();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user