Skip to content

Commit

Permalink
Fix for Aircoookie#3991
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek authored and softhack007 committed May 21, 2024
1 parent 1b9b2dc commit a25e608
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,11 +731,7 @@ void serializeState(JsonObject root, bool forPreset, bool includeBri, bool segme
nl["dur"] = nightlightDelayMins;
nl["mode"] = nightlightMode;
nl[F("tbri")] = nightlightTargetBri;
if (nightlightActive) {
nl[F("rem")] = (nightlightDelayMs - (millis() - nightlightStartTime)) / 1000; // seconds remaining
} else {
nl[F("rem")] = -1;
}
nl[F("rem")] = nightlightActive ? (int)(nightlightDelayMs - (millis() - nightlightStartTime)) / 1000 : -1; // seconds remaining

JsonObject udpn = root.createNestedObject("udpn");
udpn["send"] = notifyDirect;
Expand Down

0 comments on commit a25e608

Please sign in to comment.