diff options
| author | Siebe Claes <[email protected]> | 2024-03-01 19:15:49 +0100 |
|---|---|---|
| committer | Siebe Claes <[email protected]> | 2024-03-01 19:21:01 +0100 |
| commit | 96af20cf5b1af90029bd5119c2f4918b844d9fc3 (patch) | |
| tree | 7ead14d515a2b27480febe17b99640917693b849 | |
| parent | e70663765a1b7772b82c82da930e3e18b78decf2 (diff) | |
stm32: can: fd: Fix Frame is_extended() function
| -rw-r--r-- | embassy-stm32/src/can/frame.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/can/frame.rs b/embassy-stm32/src/can/frame.rs index 00a441db6..9c293035d 100644 --- a/embassy-stm32/src/can/frame.rs +++ b/embassy-stm32/src/can/frame.rs | |||
| @@ -206,7 +206,7 @@ impl embedded_can::Frame for ClassicFrame { | |||
| 206 | fn is_extended(&self) -> bool { | 206 | fn is_extended(&self) -> bool { |
| 207 | match self.can_header.id { | 207 | match self.can_header.id { |
| 208 | embedded_can::Id::Extended(_) => true, | 208 | embedded_can::Id::Extended(_) => true, |
| 209 | embedded_can::Id::Standard(_) => true, | 209 | embedded_can::Id::Standard(_) => false, |
| 210 | } | 210 | } |
| 211 | } | 211 | } |
| 212 | fn is_remote_frame(&self) -> bool { | 212 | fn is_remote_frame(&self) -> bool { |
| @@ -369,7 +369,7 @@ impl embedded_can::Frame for FdFrame { | |||
| 369 | fn is_extended(&self) -> bool { | 369 | fn is_extended(&self) -> bool { |
| 370 | match self.can_header.id { | 370 | match self.can_header.id { |
| 371 | embedded_can::Id::Extended(_) => true, | 371 | embedded_can::Id::Extended(_) => true, |
| 372 | embedded_can::Id::Standard(_) => true, | 372 | embedded_can::Id::Standard(_) => false, |
| 373 | } | 373 | } |
| 374 | } | 374 | } |
| 375 | fn is_remote_frame(&self) -> bool { | 375 | fn is_remote_frame(&self) -> bool { |
