From 7b166caf84e0d26995e34707c30bd2513c7b0091 Mon Sep 17 00:00:00 2001
From: Marcel Peterkau
+
%NAME_FAC_1% | +%NAME_FAC_2% | +%NAME_FAC_3% | +
---|---|---|
![]() |
+ ![]() |
+ ![]() |
+
%POINTS_FAC_1% | +%POINTS_FAC_2% | +%POINTS_FAC_3% | +
+
diff --git a/Software/src/webui.cpp b/Software/src/webui.cpp index a7aab47..a89d8d6 100644 --- a/Software/src/webui.cpp +++ b/Software/src/webui.cpp @@ -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