diff --git a/wled00/set.cpp b/wled00/set.cpp index f9abd4e7..78c27cd9 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -947,11 +947,13 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply) } else { nightlightActive = true; if (!aNlDef) nightlightDelayMins = getNumVal(&req, pos); + else nightlightDelayMins = nightlightDelayMinsDefault; nightlightStartTime = millis(); } } else if (aNlDef) { nightlightActive = true; + nightlightDelayMins = nightlightDelayMinsDefault; nightlightStartTime = millis(); }