Skip to content

Commit

Permalink
Reorder configurition as per documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
samparent97 committed Apr 30, 2024
1 parent 58bd93d commit c65393c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/mcal/stm32f767/periph/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c65393c

Please sign in to comment.