Only switch to AP mode on WiFi connection error if user have never visited GUI (first setup)

This commit is contained in:
Gunnar Skjold 2023-07-02 13:57:22 +02:00
parent 9d09c619e4
commit 1132db9bfa

View File

@ -188,8 +188,6 @@ void WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) {
switch(reason) {
case WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT:
case WIFI_REASON_AUTH_FAIL:
swapWifiMode();
break;
case WIFI_REASON_NO_AP_FOUND:
SystemConfig sys;
if(!config.getSystemConfig(sys) || sys.dataCollectionConsent == 0) {