remove stupid "live forever" default

This commit is contained in:
Frank
2025-12-23 01:42:55 +01:00
parent 3c30edb70a
commit 655330d1a6

View File

@@ -560,7 +560,13 @@ bool deserializeState(JsonObject root, byte callMode, byte presetId)
if (root["live"].as<bool>()) {
transitionDelayTemp = 0;
jsonTransitionOnce = true;
#ifdef WLED_ENABLE_JSONLIVE
// infinite timeout only when JSON LIVE leds preview is enabled
realtimeLock(65000);
#else
// more meaningful timeout : use configurable timeout; *3 for some safety margin without staying "live" forever
realtimeLock(realtimeTimeoutMs *3); // Use configurable timeout like other protocols
#endif
} else {
exitRealtime();
}