stm32: can: fd: Fix Frame is_extended() function

This commit is contained in:
Siebe Claes 2024-03-01 19:15:49 +01:00
parent e70663765a
commit 96af20cf5b

View file

@ -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 {