diff --git a/Core/Src/cansend.c b/Core/Src/cansend.c index 6e3a58c..cbc5a78 100644 --- a/Core/Src/cansend.c +++ b/Core/Src/cansend.c @@ -85,9 +85,7 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { if (huart->Instance == USART1) { - BaseType_t xHigherPriorityTaskWoken = pdFALSE; - osSemaphoreReleaseFromISR(xUARTDMASemaphore, &xHigherPriorityTaskWoken); - portYIELD_FROM_ISR(xHigherPriorityTaskWoken); + osSemaphoreRelease(xUARTDMASemaphore); } } /* END HAL_UART_TxCpltCallback */