|
|
@ -58,7 +58,7 @@ bool xs_udp_init(udp_t *udp_handler, const char *name, uint16_t port, udp_on_pac |
|
|
|
|
|
|
|
if (on_packet) { |
|
|
|
// ´´½¨½ÓÊÕÏß³Ì |
|
|
|
osThreadDef(udp_server_rx_thread, udp_server_receive_thread, osPriorityBelowNormal, 0, 512); |
|
|
|
osThreadDef(udp_server_rx_thread, udp_server_receive_thread, osPriorityNormal, 0, 512); |
|
|
|
udp_handler->rx_thread = osThreadCreate(osThread(udp_server_rx_thread), udp_handler); |
|
|
|
ZASSERT(udp_handler->rx_thread != NULL); |
|
|
|
} |
|
|
|