- prevent LED flash on realtime end
This commit is contained in:
Blaz Kristan 2023-05-14 20:30:57 +02:00
parent 217004c70c
commit 1c8f349a62

View File

@ -189,7 +189,7 @@ void realtimeLock(uint32_t timeoutMs, byte md)
void exitRealtime() { void exitRealtime() {
if (!realtimeMode) return; if (!realtimeMode) return;
if (realtimeOverride == REALTIME_OVERRIDE_ONCE) realtimeOverride = REALTIME_OVERRIDE_NONE; if (realtimeOverride == REALTIME_OVERRIDE_ONCE) realtimeOverride = REALTIME_OVERRIDE_NONE;
strip.setBrightness(scaledBri(bri)); strip.setBrightness(scaledBri(bri), true);
realtimeTimeout = 0; // cancel realtime mode immediately realtimeTimeout = 0; // cancel realtime mode immediately
realtimeMode = REALTIME_MODE_INACTIVE; // inform UI immediately realtimeMode = REALTIME_MODE_INACTIVE; // inform UI immediately
realtimeIP[0] = 0; realtimeIP[0] = 0;