Fix restart on wifimanager timeout

This commit is contained in:
Theo Arends 2024-06-09 10:40:01 +02:00
parent 3cae94d710
commit 8cfa6f28ea
1 changed files with 4 additions and 0 deletions

View File

@ -923,6 +923,10 @@ void WifiCheck(uint8_t param)
if (Wifi.config_counter) { if (Wifi.config_counter) {
Wifi.config_counter--; Wifi.config_counter--;
Wifi.counter = Wifi.config_counter +5; Wifi.counter = Wifi.config_counter +5;
if (!Wifi.config_counter) {
// SettingsSdkErase(); // Disabled v6.1.0b due to possible bad wifi connects
TasmotaGlobal.restart_flag = 2;
}
} else { } else {
if (Wifi.counter <= 0) { if (Wifi.counter <= 0) {
WifiCheckIp(); WifiCheckIp();