Merge pull request #2645 from siebeclaes/stm32-can-frame

stm32: can: fd: Fix Frame is_extended() function
This commit is contained in:
Dario Nieuwenhuis 2024-03-01 18:28:30 +00:00 committed by GitHub
commit defc1845c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {