From b37f4069e481b9c8ce0d18a107eb9a99374f82a5 Mon Sep 17 00:00:00 2001 From: copercini Date: Sat, 15 Dec 2018 14:39:51 -0200 Subject: [PATCH] Increase _network_event_task priority (#2184) Fixes https://github.com/espressif/arduino-esp32/issues/1595 --- libraries/WiFi/src/WiFiGeneric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiGeneric.cpp b/libraries/WiFi/src/WiFiGeneric.cpp index f26ca615..400f9d3c 100644 --- a/libraries/WiFi/src/WiFiGeneric.cpp +++ b/libraries/WiFi/src/WiFiGeneric.cpp @@ -96,7 +96,7 @@ static bool _start_network_event_task(){ } } if(!_network_event_task_handle){ - xTaskCreatePinnedToCore(_network_event_task, "network_event", 4096, NULL, 2, &_network_event_task_handle, ARDUINO_RUNNING_CORE); + xTaskCreatePinnedToCore(_network_event_task, "network_event", 4096, NULL, ESP_TASKD_EVENT_PRIO - 1, &_network_event_task_handle, ARDUINO_RUNNING_CORE); if(!_network_event_task_handle){ log_e("Network Event Task Start Failed!"); return false;