Skip to content

Commit

Permalink
Merge branch 'Aircoookie:0_15' into 0_15
Browse files Browse the repository at this point in the history
  • Loading branch information
gsieben committed May 20, 2024
2 parents db2cdca + 4a7ef07 commit 904b1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ void serializeState(JsonObject root, bool forPreset, bool includeBri, bool segme
nl["dur"] = nightlightDelayMins;
nl["mode"] = nightlightMode;
nl[F("tbri")] = nightlightTargetBri;
nl[F("rem")] = nightlightActive ? (nightlightDelayMs - (millis() - nightlightStartTime)) / 1000 : -1; // seconds remaining
nl[F("rem")] = nightlightActive ? (int)(nightlightDelayMs - (millis() - nightlightStartTime)) / 1000 : -1; // seconds remaining

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

0 comments on commit 904b1f1

Please sign in to comment.