mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
stm32: can: fd: Fix Frame is_extended() function
This commit is contained in:
parent
e70663765a
commit
96af20cf5b
@ -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