Skip to content

Commit

Permalink
🐛 Fix stm32f1::can_transceiver baud_rate() (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
kammce authored Jan 3, 2025
1 parent e5cc2cc commit bc25ed4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stm32f1/can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ can_peripheral_manager::can_peripheral_manager(hal::u32 p_baud_rate,

initialize_interrupts();

// Enable interrupt service routine.
// Setup interrupt service routines
cortex_m::enable_interrupt(irq::can1_rx0, handler_circular_buffer_interrupt);
cortex_m::enable_interrupt(irq::can1_rx1, handler_circular_buffer_interrupt);
cortex_m::enable_interrupt(irq::can1_sce, handler_status_change_interrupt);
Expand Down Expand Up @@ -778,6 +778,7 @@ void can_peripheral_manager::bus_manager::driver_baud_rate(hal::u32 p_hertz)
nonstd::scope_exit on_exit(&exit_initialization);

configure_baud_rate(p_hertz);
current_baud_rate = p_hertz;
}

void can_peripheral_manager::bus_manager::driver_filter_mode(accept)
Expand Down

0 comments on commit bc25ed4

Please sign in to comment.