From 04dc93e951c6d23de0219065dfdca3f4950cd4c8 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 5 Dec 2021 16:43:46 +0100 Subject: [PATCH] fix disabling leds on quit --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3d899d9..9f4ba82 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -172,11 +172,11 @@ void handleWebSocketEvent(WStype_t type, uint8_t * payload, size_t length) { } else { is_currently_preview = false; } - } else if (strcmp(doc["update-type"], "Exiting") == 0) { - Serial.println("[OBS] quit"); - is_currently_preview = false; - is_currently_live = false; } + } else if (strcmp(doc["update-type"], "Exiting") == 0) { + Serial.println("[OBS] quit"); + is_currently_preview = false; + is_currently_live = false; } else if (strcmp(doc["update-type"], "StudioModeSwitched") == 0 && !doc["new-state"]) { Serial.println("[OBS] studio mode disabled"); is_currently_preview = false;