Skip to content

Commit 5b222cb

Browse files
authored
Fix for serial port open for COM2 on single core devices (ESP32_C3) (#3041)
Simple change, will merge without review
1 parent 395658b commit 5b222cb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

targets/ESP32/_nanoCLR/System.IO.Ports/sys_io_ser_native_System_IO_Ports_SerialPort.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,7 @@ HRESULT Library_sys_io_ser_native_System_IO_Ports_SerialPort::NativeInit___VOID(
946946

947947
// Create a task to handle UART event from ISR
948948
snprintf(task_name, ARRAYSIZE(task_name), "uart%d_events", uart_num);
949-
if (xTaskCreatePinnedToCore(uart_event_task_sys, task_name, 2048, palUart, 12, &(palUart->UartEventTask), 1) !=
950-
pdPASS)
949+
if (xTaskCreate(uart_event_task_sys, task_name, 2048, palUart, 12, &(palUart->UartEventTask)) != pdPASS)
951950
{
952951
ESP_LOGE(TAG, "Failed to start UART events task");
953952
NANOCLR_SET_AND_LEAVE(CLR_E_FAIL);

0 commit comments

Comments
 (0)