From 71d84fecba1daccf43c9319ee18b3f149156eb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Fri, 4 Nov 2022 08:33:55 +0100 Subject: [PATCH] Bugfix. Use default nightLightDelay if ND present. --- wled00/set.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); }