mirror of
https://github.com/espressif/esp-modbus.git
synced 2025-07-30 02:17:17 +02:00
Merge branch 'bugfix/modbus_tcp_slave_fix_task_affinity' into 'master'
modbus tcp slave fix task affinity Closes IDFGH-7653 See merge request idf/esp-modbus!12
This commit is contained in:
@ -150,12 +150,13 @@ xMBTCPPortInit( USHORT usTCPPort )
|
||||
xConfig.pcBindAddr = NULL;
|
||||
|
||||
// Create task for packet processing
|
||||
BaseType_t xErr = xTaskCreate(vMBTCPPortServerTask,
|
||||
"tcp_server_task",
|
||||
BaseType_t xErr = xTaskCreatePinnedToCore(vMBTCPPortServerTask,
|
||||
"tcp_slave_task",
|
||||
MB_TCP_STACK_SIZE,
|
||||
NULL,
|
||||
MB_TCP_TASK_PRIO,
|
||||
&xConfig.xMbTcpTaskHandle);
|
||||
&xConfig.xMbTcpTaskHandle,
|
||||
MB_PORT_TASK_AFFINITY);
|
||||
vTaskSuspend(xConfig.xMbTcpTaskHandle);
|
||||
if (xErr != pdTRUE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user