-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
If i understand the register setting logic here, embassy does not apply the automatic retransmit flag correctly. enable flag should be inverted to set non automatic retransmission flag to desired mode
embassy/embassy-stm32/src/can/bxcan/registers.rs
Lines 63 to 71 in 0f90f67
| /// Enables or disables automatic retransmission of messages. | |
| /// | |
| /// If this is enabled, the CAN peripheral will automatically try to retransmit each frame | |
| /// until it can be sent. Otherwise, it will try only once to send each frame. | |
| /// | |
| /// Automatic retransmission is enabled by default. | |
| pub fn set_automatic_retransmit(&self, enabled: bool) { | |
| self.0.mcr().modify(|reg| reg.set_nart(enabled)); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
