fix disabling leds on quit

This commit is contained in:
Franzi 2021-12-05 16:43:46 +01:00
parent 4345c27453
commit 04dc93e951
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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"], "StudioModeSwitched") == 0 && !doc["new-state"]) {
Serial.println("[OBS] studio mode disabled");
is_currently_preview = false;