mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 21:01:06 +00:00
Merge pull request #3782 from Andreychik32/main
stm32/can: fix wrong negation of fdcan set_transmit_pause function parameter
This commit is contained in:
commit
5bba87e0c9
@ -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