From fd848332154458fa4ca45f64eebf6a46c9b352f3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 31 Oct 2024 19:51:19 -0400 Subject: [PATCH] Fixed Error --- platforms/stm32f405/src/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/stm32f405/src/can.c b/platforms/stm32f405/src/can.c index 41c4abb..13d3a2c 100644 --- a/platforms/stm32f405/src/can.c +++ b/platforms/stm32f405/src/can.c @@ -11,7 +11,7 @@ HAL_StatusTypeDef can_init(can_t *can) { /* set up interrupt & activate CAN */ HAL_CAN_IRQHandler(can->hcan); - err = HAL_CAN_ActivateNotification(can->hcan, + int8_t err = HAL_CAN_ActivateNotification(can->hcan, CAN_IT_RX_FIFO0_MSG_PENDING); if (err != HAL_OK) return err;