Fix declaration bug
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ void vUARTLogger(void *argument)
|
|||||||
if (osMessageQueueGet(xUARTQueue, &message, NULL, osWaitForever) == osOK)
|
if (osMessageQueueGet(xUARTQueue, &message, NULL, osWaitForever) == osOK)
|
||||||
{
|
{
|
||||||
DEBUG_PRINT("CAN frame detected\r\n");
|
DEBUG_PRINT("CAN frame detected\r\n");
|
||||||
format_can_message(tx_buffer, message.source, &message);
|
int len = format_can_message(tx_buffer, message.source, &message);
|
||||||
HAL_UART_Transmit_DMA(&huart1, (uint8_t*)tx_buffer, len);
|
HAL_UART_Transmit_DMA(&huart1, (uint8_t*)tx_buffer, len);
|
||||||
osSemaphoreAcquire(xUARTDMASemaphore, osWaitForever);
|
osSemaphoreAcquire(xUARTDMASemaphore, osWaitForever);
|
||||||
DEBUG_PRINT("CAN frame sent via UART\r\n");
|
DEBUG_PRINT("CAN frame sent via UART\r\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user