mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-30 05:40:55 +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`]
|
/// [`FdCanConfig::set_transmit_pause`]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_transmit_pause(&self, enabled: bool) {
|
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`]
|
/// Configures non-iso mode. See [`FdCanConfig::set_non_iso_mode`]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user