mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 06:40:32 +00:00
fix wrong negation of fdcan set_transmit_pause function parameter
This commit is contained in:
parent
169f9c27aa
commit
08ef834301
@ -458,7 +458,7 @@ impl Registers {
|
||||
/// [`FdCanConfig::set_transmit_pause`]
|
||||
#[inline]
|
||||
pub fn set_transmit_pause(&self, enabled: bool) {
|
||||
self.regs.cccr().modify(|w| w.set_txp(!enabled));
|
||||
self.regs.cccr().modify(|w| w.set_txp(enabled));
|
||||
}
|
||||
|
||||
/// Configures non-iso mode. See [`FdCanConfig::set_non_iso_mode`]
|
||||
|
Loading…
x
Reference in New Issue
Block a user