Use stricter semaphore timing

This commit is contained in:
2026-07-04 18:24:18 +02:00
parent 2d7e7f514a
commit 4236c204a6
+1 -1
View File
@@ -50,7 +50,7 @@ void uart_printf(const char *fmt, ...)
{
if (osKernelGetState() == osKernelRunning && __get_IPSR() == 0)
{
if (osSemaphoreAcquire(xUARTDMASemaphore, osWaitForever) == osOK)
if (osSemaphoreAcquire(xUARTDMASemaphore, 100U) == osOK)
{
HAL_UART_Transmit(&huart1, (uint8_t*)buf, len, HAL_MAX_DELAY);
osSemaphoreRelease(xUARTDMASemaphore);