From 4236c204a624754658b7ea700a3748ce4c195b30 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Sat, 4 Jul 2026 18:24:18 +0200 Subject: [PATCH] Use stricter semaphore timing --- Core/Src/cansend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Src/cansend.c b/Core/Src/cansend.c index 5851c86..351c5f3 100644 --- a/Core/Src/cansend.c +++ b/Core/Src/cansend.c @@ -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);