fix disabling leds on quit
This commit is contained in:
parent
4345c27453
commit
04dc93e951
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue