Fix typo
This commit is contained in:
+4
-2
@@ -111,8 +111,10 @@ void vUARTLogger(void *argument)
|
|||||||
{
|
{
|
||||||
DEBUG_PRINT("CAN frame detected\r\n");
|
DEBUG_PRINT("CAN frame detected\r\n");
|
||||||
int len = 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);
|
if (HAL_UART_Transmit_DMA(&huart1, (uint8_t*)tx_buffer, len) == HAL_OK)
|
||||||
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