diff --git a/main/esp32-wifi-manager.c b/main/esp32-wifi-manager.c index fcde56d..e04cfd3 100644 --- a/main/esp32-wifi-manager.c +++ b/main/esp32-wifi-manager.c @@ -65,13 +65,7 @@ static esp_err_t wifi_event_handler(void *ctx, system_event_t *event) { ESP_LOGI(TAG, "SYSTEM_EVENT_STA_DISCONNECTED"); 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); } else {