Skip to content

Commit 4a7ef07

Browse files
committed
Fix for wled#3991
1 parent fae5938 commit 4a7ef07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/json.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ void serializeState(JsonObject root, bool forPreset, bool includeBri, bool segme
598598
nl["dur"] = nightlightDelayMins;
599599
nl["mode"] = nightlightMode;
600600
nl[F("tbri")] = nightlightTargetBri;
601-
nl[F("rem")] = nightlightActive ? (nightlightDelayMs - (millis() - nightlightStartTime)) / 1000 : -1; // seconds remaining
601+
nl[F("rem")] = nightlightActive ? (int)(nightlightDelayMs - (millis() - nightlightStartTime)) / 1000 : -1; // seconds remaining
602602

603603
JsonObject udpn = root.createNestedObject("udpn");
604604
udpn[F("send")] = sendNotificationsRT;

0 commit comments

Comments
 (0)