Fix wifi quick connect

Fix wifi quick connect
This commit is contained in:
Theo Arends 2020-04-07 16:39:04 +02:00
parent 7e162e6caf
commit 53717df2e9
1 changed files with 2 additions and 1 deletions

View File

@ -451,11 +451,12 @@ void WifiCheckIp(void)
}
break;
default: // WL_IDLE_STATUS and WL_DISCONNECTED
Settings.channel = 0; // Disable stored AP
if (!Wifi.retry || ((Wifi.retry_init / 2) == Wifi.retry)) {
AddLog_P(LOG_LEVEL_INFO, S_LOG_WIFI, PSTR(D_CONNECT_FAILED_AP_TIMEOUT));
Settings.channel = 0; // Disable stored AP
} else {
if (!strlen(SettingsText(SET_STASSID1)) && !strlen(SettingsText(SET_STASSID2))) {
Settings.channel = 0; // Disable stored AP
wifi_config_tool = WIFI_MANAGER; // Skip empty SSIDs and start Wifi config tool
Wifi.retry = 0;
} else {