mirror of https://github.com/arendst/Tasmota.git
remove dead code (#21595)
This commit is contained in:
parent
01140d3013
commit
c556c06413
|
@ -923,22 +923,6 @@ void WifiCheck(uint8_t param)
|
|||
if (Wifi.config_counter) {
|
||||
Wifi.config_counter--;
|
||||
Wifi.counter = Wifi.config_counter +5;
|
||||
if (Wifi.config_counter) {
|
||||
if (!Wifi.config_counter) {
|
||||
if (strlen(WiFi.SSID().c_str())) {
|
||||
SettingsUpdateText(SET_STASSID1, WiFi.SSID().c_str());
|
||||
}
|
||||
if (strlen(WiFi.psk().c_str())) {
|
||||
SettingsUpdateText(SET_STAPWD1, WiFi.psk().c_str());
|
||||
}
|
||||
Settings->sta_active = 0;
|
||||
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_WIFI D_WCFG_2_WIFIMANAGER D_CMND_SSID "1 %s"), SettingsText(SET_STASSID1));
|
||||
}
|
||||
}
|
||||
if (!Wifi.config_counter) {
|
||||
// SettingsSdkErase(); // Disabled v6.1.0b due to possible bad wifi connects
|
||||
TasmotaGlobal.restart_flag = 2;
|
||||
}
|
||||
} else {
|
||||
if (Wifi.counter <= 0) {
|
||||
WifiCheckIp();
|
||||
|
|
Loading…
Reference in New Issue