wifiscan.cpp: remove legay event loop handler

This commit is contained in:
cyberman54 2020-12-15 22:36:52 +01:00
parent 19216faa88
commit 570a3ea486

View File

@ -63,7 +63,6 @@ void wifi_sniffer_init(void) {
WIFI_PROMIS_FILTER_MASK_MGMT | WIFI_PROMIS_FILTER_MASK_MGMT |
WIFI_PROMIS_FILTER_MASK_DATA}; WIFI_PROMIS_FILTER_MASK_DATA};
ESP_ERROR_CHECK(esp_event_loop_init(NULL, NULL));
ESP_ERROR_CHECK(esp_wifi_init(&wifi_cfg)); // start Wifi task ESP_ERROR_CHECK(esp_wifi_init(&wifi_cfg)); // start Wifi task
ESP_ERROR_CHECK( ESP_ERROR_CHECK(
esp_wifi_set_country(&wifi_country)); // set locales for RF and channels esp_wifi_set_country(&wifi_country)); // set locales for RF and channels