points and reset-function on webUI

This commit is contained in:
2023-04-17 21:51:13 +02:00
parent 62a7cd1b9c
commit 7b166caf84
2 changed files with 53 additions and 0 deletions

View File

@@ -239,6 +239,14 @@ void WebserverPOST_Callback(AsyncWebServerRequest *request)
{
globals.systemStatus = sysStat_Shutdown;
}
if (p->name() == "resetpoints")
{
PersistenceData.faction_1_timer = 0;
PersistenceData.faction_2_timer = 0;
PersistenceData.faction_3_timer = 0;
PersistenceData.activeFaction = NONE;
globals.requestEEAction == EE_PDS_SAVE;
}
// end: POST Form Maintenance
// begin: POST Form Settings