dont incremental connect

This commit is contained in:
Morgan Allen 2018-10-09 21:12:24 -07:00
parent cda32dd951
commit 3c778c4c9c

View file

@ -65,13 +65,7 @@ static esp_err_t wifi_event_handler(void *ctx, system_event_t *event) {
ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED"); ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED");
xEventGroupClearBits(wm_event_group, WIFI_CONNECTED); xEventGroupClearBits(wm_event_group, WIFI_CONNECTED);
vTaskDelay(CONFIG_WIFI_MANAGER_CONNECTION_DELAY / portTICK_PERIOD_MS);
// inc to the next ap, if it's the last one go IDLE
// else attempt to connect
ap_store.last++;
if(ap_store.count == ap_store.last) {
ap_store.last = 0;
xEventGroupSetBits(wm_event_group, WIFI_IDLE); xEventGroupSetBits(wm_event_group, WIFI_IDLE);
} else { } else {