Removing option for auto reboot on wifi error

This commit is contained in:
Gunnar Skjold
2023-11-25 10:31:21 +01:00
parent 2b0626b203
commit 0e6abd0f18
6 changed files with 12 additions and 26 deletions

View File

@@ -886,7 +886,7 @@ void AmsWebServer::configurationJson() {
strlen(wifiConfig.psk) > 0 ? "***" : "",
wifiConfig.power / 10.0,
wifiConfig.sleep,
wifiConfig.autoreboot ? "true" : "false",
"false",
wifiConfig.use11b ? "true" : "false"
);
server.sendContent(buf);
@@ -1262,7 +1262,6 @@ void AmsWebServer::handleSave() {
}
wifi.power = server.arg(F("ww")).toFloat() * 10;
wifi.sleep = server.arg(F("wz")).toInt();
wifi.autoreboot = server.hasArg(F("wa")) && server.arg(F("wa")) == F("true");
wifi.use11b = server.hasArg(F("wb")) && server.arg(F("wb")) == F("true");
config->setWiFiConfig(wifi);