mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 23:45:25 +00:00
Only switch to AP mode on WiFi connection error if user have never visited GUI (first setup)
This commit is contained in:
parent
9d09c619e4
commit
1132db9bfa
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user