stm32: can: fd: Fix Frame is_extended() function
This commit is contained in:
parent
e70663765a
commit
96af20cf5b
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue