Skip to content

Commit c556c06

Browse files
authored
remove dead code (#21595)
1 parent 01140d3 commit c556c06

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tasmota/tasmota_support/support_wifi.ino

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -923,22 +923,6 @@ void WifiCheck(uint8_t param)
923923
if (Wifi.config_counter) {
924924
Wifi.config_counter--;
925925
Wifi.counter = Wifi.config_counter +5;
926-
if (Wifi.config_counter) {
927-
if (!Wifi.config_counter) {
928-
if (strlen(WiFi.SSID().c_str())) {
929-
SettingsUpdateText(SET_STASSID1, WiFi.SSID().c_str());
930-
}
931-
if (strlen(WiFi.psk().c_str())) {
932-
SettingsUpdateText(SET_STAPWD1, WiFi.psk().c_str());
933-
}
934-
Settings->sta_active = 0;
935-
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_WIFI D_WCFG_2_WIFIMANAGER D_CMND_SSID "1 %s"), SettingsText(SET_STASSID1));
936-
}
937-
}
938-
if (!Wifi.config_counter) {
939-
// SettingsSdkErase(); // Disabled v6.1.0b due to possible bad wifi connects
940-
TasmotaGlobal.restart_flag = 2;
941-
}
942926
} else {
943927
if (Wifi.counter <= 0) {
944928
WifiCheckIp();

0 commit comments

Comments
 (0)