mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-21 10:16:34 +00:00
Fix reconnects happens to quickly #919
This commit is contained in:
parent
9840c77d39
commit
f08eafc07f
@ -74,8 +74,8 @@ build_flags =
|
||||
; -- Hasp build options ----------------------------
|
||||
-D HASP_VER_MAJ=0
|
||||
-D HASP_VER_MIN=7
|
||||
;-D HASP_VER_REV=4
|
||||
-D HASP_VER_REV=0-rc15
|
||||
-D HASP_VER_REV=0.1
|
||||
;-D HASP_VER_REV=0-rc15
|
||||
;-D HASP_VER_REV=4-rc1
|
||||
${override.build_flags}
|
||||
|
||||
|
@ -509,7 +509,7 @@ void wifiSetup()
|
||||
|
||||
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);
|
||||
wifiReconnect();
|
||||
WiFi.setAutoReconnect(false); // done in wifiEvery5Seconds
|
||||
WiFi.setAutoReconnect(true); // done in wifiEvery5Seconds
|
||||
LOG_TRACE(TAG_WIFI, F(D_WIFI_CONNECTING_TO), wifiSsid);
|
||||
}
|
||||
#endif
|
||||
@ -532,10 +532,11 @@ bool wifiEvery5Seconds()
|
||||
return true;
|
||||
}
|
||||
|
||||
if(wifiEnabled) {
|
||||
LOG_WARNING(TAG_WIFI, F("No Connection... retry %d"), network_reconnect_counter);
|
||||
wifiReconnect();
|
||||
}
|
||||
// Issue #919 : Reconnects happens to quickly
|
||||
// if(wifiEnabled) {
|
||||
// LOG_WARNING(TAG_WIFI, F("No Connection... retry %d"), network_reconnect_counter);
|
||||
// wifiReconnect();
|
||||
// }
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user