think this is the proper way to check....

This commit is contained in:
Morgan Allen 2018-10-09 21:21:40 -07:00
parent e31719fb1e
commit db94a61575

View file

@ -136,8 +136,8 @@ void wifi_manager_main_loop() {
EventBits_t ev_bits = xEventGroupGetBits(wm_event_group); EventBits_t ev_bits = xEventGroupGetBits(wm_event_group);
if(ev_bits & AP_AVAILABLE && 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"); ESP_LOGI(TAG, "AP Available, starting WiFi connect");
} }