From 2a8f8713e737853c63fc77a3ed173d8eb106d112 Mon Sep 17 00:00:00 2001 From: Jonny Date: Sat, 16 Aug 2025 10:08:07 +0100 Subject: [PATCH] Make new voltage limit settings actually save --- Software/src/devboard/webserver/webserver.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Software/src/devboard/webserver/webserver.cpp b/Software/src/devboard/webserver/webserver.cpp index 174efc78..4949bd86 100644 --- a/Software/src/devboard/webserver/webserver.cpp +++ b/Software/src/devboard/webserver/webserver.cpp @@ -445,6 +445,18 @@ void init_webserver() { } else if (p->name() == "BATTCOMM") { auto type = static_cast(atoi(p->value().c_str())); settings.saveUInt("BATTCOMM", (int)type); + } else if (p->name() == "BATTPVMAX") { + auto type = p->value().toFloat() * 10.0; + settings.saveUInt("BATTPVMAX", (int)type); + } else if (p->name() == "BATTPVMIN") { + auto type = p->value().toFloat() * 10.0; + settings.saveUInt("BATTPVMIN", (int)type); + } else if (p->name() == "BATTCVMAX") { + auto type = atoi(p->value().c_str()); + settings.saveUInt("BATTCVMAX", type); + } else if (p->name() == "BATTCVMIN") { + auto type = atoi(p->value().c_str()); + settings.saveUInt("BATTCVMIN", type); } else if (p->name() == "charger") { auto type = static_cast(atoi(p->value().c_str())); settings.saveUInt("CHGTYPE", (int)type);