feat: low power mode

This commit is contained in:
SQ2CPA
2024-03-28 18:00:46 +01:00
parent a8a7c3e3a3
commit 14999d1b66
9 changed files with 133 additions and 4 deletions

View File

@@ -155,6 +155,8 @@ namespace WEB_Utils {
Config.externalVoltagePin = request->getParam("other.externalVoltagePin", true)->value().toInt();
}
Config.lowPowerMode = request->hasParam("other.lowPowerMode", true);
Config.writeFile();
AsyncWebServerResponse *response = request->beginResponse(302, "text/html", "");