From c65393c51611ce6627c8d22f3733ca1d3ad43657 Mon Sep 17 00:00:00 2001 From: samparent97 Date: Mon, 29 Apr 2024 23:26:15 -0300 Subject: [PATCH] Reorder configurition as per documentation --- firmware/mcal/stm32f767/periph/can.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/mcal/stm32f767/periph/can.h b/firmware/mcal/stm32f767/periph/can.h index dcd5cd083..36950a869 100644 --- a/firmware/mcal/stm32f767/periph/can.h +++ b/firmware/mcal/stm32f767/periph/can.h @@ -21,9 +21,9 @@ class CanBase : public shared::periph::CanBase { CanBase(CAN_HandleTypeDef* hcan) : hcan_(hcan){}; void Setup() { + HAL_CAN_ActivateNotification(hcan_, kCanRxActiveInterruptFifo0); ConfigFilters(); HAL_CAN_Start(hcan_); - HAL_CAN_ActivateNotification(hcan_, kCanRxActiveInterruptFifo0); } void Send(const shared::can::RawCanMsg& can_tx_msg) override {