mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
Merge pull request #2645 from siebeclaes/stm32-can-frame
stm32: can: fd: Fix Frame is_extended() function
This commit is contained in:
commit
defc1845c9
@ -206,7 +206,7 @@ impl embedded_can::Frame for ClassicFrame {
|
||||
fn is_extended(&self) -> bool {
|
||||
match self.can_header.id {
|
||||
embedded_can::Id::Extended(_) => true,
|
||||
embedded_can::Id::Standard(_) => true,
|
||||
embedded_can::Id::Standard(_) => false,
|
||||
}
|
||||
}
|
||||
fn is_remote_frame(&self) -> bool {
|
||||
@ -369,7 +369,7 @@ impl embedded_can::Frame for FdFrame {
|
||||
fn is_extended(&self) -> bool {
|
||||
match self.can_header.id {
|
||||
embedded_can::Id::Extended(_) => true,
|
||||
embedded_can::Id::Standard(_) => true,
|
||||
embedded_can::Id::Standard(_) => false,
|
||||
}
|
||||
}
|
||||
fn is_remote_frame(&self) -> bool {
|
||||
|
Loading…
Reference in New Issue
Block a user