From 12ef44d3d8df5b1fa71a330a4458e7b43ba541b4 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Tue, 16 Jun 2026 18:06:26 +0200 Subject: [PATCH] Use clearer variable name --- Core/Src/canlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Src/canlog.c b/Core/Src/canlog.c index e5bd7cb..428b1e6 100644 --- a/Core/Src/canlog.c +++ b/Core/Src/canlog.c @@ -134,9 +134,9 @@ void vLEDHeartbeat(void *argument) for (;;) { - uint32_t ret = osThreadFlagsWait(0x01, osFlagsWaitAny, 25U); + uint32_t notification = osThreadFlagsWait(0x01, osFlagsWaitAny, 25U); - if (ret & 0x01) HAL_GPIO_WritePin(led->port, led->pin, GPIO_PIN_SET); + if (notification & 0x01) HAL_GPIO_WritePin(led->port, led->pin, GPIO_PIN_SET); else HAL_GPIO_WritePin(led->port, led->pin, GPIO_PIN_RESET); } /* CODE END */