mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-05-02 14:30:57 +00:00
Only switch to AP mode on WiFi connection error if user have never visited GUI (first setup)
This commit is contained in:
@@ -188,8 +188,6 @@ void WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info) {
|
|||||||
switch(reason) {
|
switch(reason) {
|
||||||
case WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT:
|
case WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT:
|
||||||
case WIFI_REASON_AUTH_FAIL:
|
case WIFI_REASON_AUTH_FAIL:
|
||||||
swapWifiMode();
|
|
||||||
break;
|
|
||||||
case WIFI_REASON_NO_AP_FOUND:
|
case WIFI_REASON_NO_AP_FOUND:
|
||||||
SystemConfig sys;
|
SystemConfig sys;
|
||||||
if(!config.getSystemConfig(sys) || sys.dataCollectionConsent == 0) {
|
if(!config.getSystemConfig(sys) || sys.dataCollectionConsent == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user