From ac16f8150eb7682426bdc9ea2f8a6193648363a6 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Sun, 14 Jun 2026 16:10:18 +0200 Subject: [PATCH] Use a more sensible number of semaphores --- Core/Src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index 21dfd1b..fbefc62 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -162,8 +162,8 @@ int main(void) /* USER CODE END RTOS_MUTEX */ /* USER CODE BEGIN RTOS_SEMAPHORES */ - xLEDSemaphoreCAN1 = osSemaphoreNew(255, 0, NULL); - xLEDSemaphoreCAN2 = osSemaphoreNew(255, 0, NULL); + xLEDSemaphoreCAN1 = osSemaphoreNew(10, 0, NULL); + xLEDSemaphoreCAN2 = osSemaphoreNew(10, 0, NULL); if (xLEDSemaphoreCAN1 == NULL || xLEDSemaphoreCAN2 == NULL) Error_Handler(); /* USER CODE END RTOS_SEMAPHORES */