From c556c06413b7e7495fd81190def7b651d4e8f9e8 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 9 Jun 2024 10:25:32 +0200 Subject: [PATCH] remove dead code (#21595) --- tasmota/tasmota_support/support_wifi.ino | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tasmota/tasmota_support/support_wifi.ino b/tasmota/tasmota_support/support_wifi.ino index 852664ad4..eee250d8e 100644 --- a/tasmota/tasmota_support/support_wifi.ino +++ b/tasmota/tasmota_support/support_wifi.ino @@ -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();