Skip to content

Commit 74f12b1

Browse files
committed
Add sdkconfig option CONFIG_ARDUINO_UDP_TASK_PRIORITY, which sets the task priority for the UDP vtask."
1 parent b92c58d commit 74f12b1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: libraries/AsyncUDP/src/AsyncUDP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static bool _udp_task_start(){
150150
}
151151
}
152152
if(!_udp_task_handle){
153-
xTaskCreateUniversal(_udp_task, "async_udp", 4096, NULL, 3, (TaskHandle_t*)&_udp_task_handle, CONFIG_ARDUINO_UDP_RUNNING_CORE);
153+
xTaskCreateUniversal(_udp_task, "async_udp", 4096, NULL, CONFIG_ARDUINO_UDP_TASK_PRIORITY, (TaskHandle_t*)&_udp_task_handle, CONFIG_ARDUINO_UDP_RUNNING_CORE);
154154
if(!_udp_task_handle){
155155
return false;
156156
}

Diff for: tools/sdk/include/config/sdkconfig.h

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@
364364
#define CONFIG_MB_TIMER_PORT_ENABLED 1
365365
#define CONFIG_DUPLICATE_SCAN_CACHE_SIZE 20
366366
#define CONFIG_ARDUINO_UDP_RUNNING_CORE 1
367+
#define CONFIG_ARDUINO_UDP_TASK_PRIORITY 3
367368
#define CONFIG_MONITOR_BAUD_OTHER_VAL 115200
368369
#define CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF 1
369370
#define CONFIG_ESPTOOLPY_PORT "/dev/cu.usbserial-DO00EAB0"

Diff for: tools/sdk/sdkconfig

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ CONFIG_ARDUINO_UDP_RUN_CORE0=
3636
CONFIG_ARDUINO_UDP_RUN_CORE1=y
3737
CONFIG_ARDUINO_UDP_RUN_NO_AFFINITY=
3838
CONFIG_ARDUINO_UDP_RUNNING_CORE=1
39+
CONFIG_ARDUINO_UDP_TASK_PRIORITY=3
3940
CONFIG_DISABLE_HAL_LOCKS=
4041

4142
#

0 commit comments

Comments
 (0)