Increase _network_event_task priority (#2184)

Fixes https://github.com/espressif/arduino-esp32/issues/1595
This commit is contained in:
copercini 2018-12-15 14:39:51 -02:00 committed by Me No Dev
parent e602145c2b
commit b37f4069e4

View File

@ -96,7 +96,7 @@ static bool _start_network_event_task(){
} }
} }
if(!_network_event_task_handle){ 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){ if(!_network_event_task_handle){
log_e("Network Event Task Start Failed!"); log_e("Network Event Task Start Failed!");
return false; return false;