From a82734cef0a4d432daf047c3dd4365f6ae3c2954 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Mon, 8 Jun 2026 23:28:54 +0200 Subject: [PATCH] Use correct thread arguments for CANrx threads --- 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 621b60a..dceb012 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -164,8 +164,8 @@ int main(void) /* USER CODE END RTOS_QUEUES */ /* Create the thread(s) */ - vCAN1_rx = osThreadNew(vCAN_log, NULL, &vCAN1_rx_attributes); - vCAN2_rx = osThreadNew(vCAN_log, NULL, &vCAN2_rx_attributes); + vCAN1_rx = osThreadNew(vCAN_log, (void*)&hcan1, &vCAN1_rx_attributes); + vCAN2_rx = osThreadNew(vCAN_log, (void*)&hcan2, &vCAN2_rx_attributes); vLED_CAN1_Heartbeat = osThreadNew(vLED_HeartbeatOnCanRx, NULL, &vLED_CAN1_Heartbeat_attributes); vLED_CAN2_Heartbeat = osThreadNew(vLED_HeartbeatOnCanRx, NULL, &vLED_CAN2_Heartbeat_attributes);