From c540ff7800f3cd9c038e64cd89e5ceb5a88c5188 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Tue, 16 Jun 2026 22:13:52 +0200 Subject: [PATCH] Remove dead code --- Core/Src/canlog.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Core/Src/canlog.c b/Core/Src/canlog.c index 38a9466..73a5a50 100644 --- a/Core/Src/canlog.c +++ b/Core/Src/canlog.c @@ -71,7 +71,6 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) uint8_t data[8]; osMessageQueueId_t queue; - uint32_t flag; osThreadId_t led_task; // TODO: manage the case of FIFO overflow @@ -86,13 +85,11 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan) if (hcan->Instance == CAN1) { queue = xCAN1RxQueue; - flag = 0x01; led_task = xCAN1LedTask; } else { queue = xCAN2RxQueue; - flag = 0x02; led_task = xCAN2LedTask; }