reworked debugger enabling

This commit is contained in:
2023-02-24 00:05:51 +01:00
parent 2376d14b5d
commit 5b41090add
3 changed files with 60 additions and 29 deletions

View File

@@ -552,13 +552,11 @@ void Websocket_HandleMessage(void *arg, uint8_t *data, size_t len)
if (strcmp((char *)data, "start") == 0)
{
Debug_pushMessage("Got WebSocket Message 'start' from client\n");
debugger.webui_live_debug_enabled = true;
SetDebugportStatus(dbg_Webui, enabled);
}
else if (strcmp((char *)data, "stop") == 0)
{
Debug_pushMessage("Got WebSocket Message 'stop' from client\n");
debugger.webui_live_debug_enabled = false;
SetDebugportStatus(dbg_Webui, disabled);
}
else if (strcmp((char *)data, "foo") == 0)
{