From 35361449eb47e4160ae017d77f28a2f4bbef1b85 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Mon, 22 Aug 2022 21:25:14 +0200 Subject: [PATCH] some Fixes on Webui --- Software/data/post.htm | 2 +- Software/src/webui.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Software/data/post.htm b/Software/data/post.htm index a9c73c6..89bc9a1 100644 --- a/Software/data/post.htm +++ b/Software/data/post.htm @@ -14,7 +14,7 @@ - + diff --git a/Software/src/webui.cpp b/Software/src/webui.cpp index 1c9b362..dc00ebe 100644 --- a/Software/src/webui.cpp +++ b/Software/src/webui.cpp @@ -313,13 +313,13 @@ void WebserverPOST_Callback(AsyncWebServerRequest *request) if (request->hasParam("reset_ee_pds")) { AsyncWebParameter *param = request->getParam("reset_ee_pds"); - if (param->value() == "checked") + if (param->value() == "on") globals.requestEEAction = globals.requestEEAction == EE_CFG_FORMAT ? EE_FORMAT_ALL : EE_PDS_FORMAT; } if (request->hasParam("reset_ee_cfg")) { AsyncWebParameter *param = request->getParam("reset_ee_cfg"); - if (param->value() == "checked") + if (param->value() == "on") globals.requestEEAction = globals.requestEEAction == EE_PDS_FORMAT ? EE_FORMAT_ALL : EE_CFG_FORMAT; } }