remove dead code (#21595)

This commit is contained in:
Jason2866 2024-06-09 10:25:32 +02:00 committed by GitHub
parent 01140d3013
commit c556c06413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 16 deletions

View File

@ -923,22 +923,6 @@ 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) {
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 { } else {
if (Wifi.counter <= 0) { if (Wifi.counter <= 0) {
WifiCheckIp(); WifiCheckIp();