mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
stm32: can: fd: only TX with BRS if also TXing with FDF
This commit is contained in:
parent
e63b0d7a2f
commit
9a4f58fe15
@ -739,7 +739,7 @@ fn put_tx_header(mailbox: &mut TxBufferElement, header: &Header) {
|
||||
} else {
|
||||
FrameFormat::Classic
|
||||
};
|
||||
let brs = header.len() > 8 || header.bit_rate_switching();
|
||||
let brs = (frame_format == FrameFormat::Fdcan) && header.bit_rate_switching();
|
||||
|
||||
mailbox.header.write(|w| {
|
||||
unsafe { w.id().bits(id) }
|
||||
|
Loading…
Reference in New Issue
Block a user