design fix in WebUI

This commit is contained in:
2024-06-06 22:38:27 +02:00
parent 0763fe2181
commit b4177c9b0f
4 changed files with 2242 additions and 2136 deletions

View File

@@ -474,15 +474,15 @@ void Websocket_HandleButtons(uint8_t *data)
{
globals.systemStatus = sysStat_Shutdown;
}
else if (strcmp(identifier, "set-faction1") == 0)
else if (strcmp(identifier, "faction1") == 0)
{
PersistenceData.activeFaction = FACTION_1;
}
else if (strcmp(identifier, "set-faction2") == 0)
else if (strcmp(identifier, "faction2") == 0)
{
PersistenceData.activeFaction = FACTION_2;
}
else if (strcmp(identifier, "set-faction3") == 0)
else if (strcmp(identifier, "faction3") == 0)
{
PersistenceData.activeFaction = FACTION_3;
}