think this is the proper way to check....
This commit is contained in:
parent
e31719fb1e
commit
db94a61575
1 changed files with 2 additions and 2 deletions
|
@ -136,8 +136,8 @@ void wifi_manager_main_loop() {
|
|||
EventBits_t ev_bits = xEventGroupGetBits(wm_event_group);
|
||||
|
||||
if(ev_bits & AP_AVAILABLE &&
|
||||
!(ev_bits & (WIFI_SCANNING|WIFI_CONNECTED|WIFI_CONNECTING))
|
||||
) {
|
||||
((ev_bits & (WIFI_SCANNING|WIFI_CONNECTED|WIFI_CONNECTING)) == 0)
|
||||
) {
|
||||
ESP_LOGI(TAG, "AP Available, starting WiFi connect");
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue