CAN progress

(cherry picked from commit bf98a53872)
This commit is contained in:
rusefillc 2021-12-01 22:57:08 -05:00
parent a784548eda
commit 6d67e8011f
1 changed files with 2 additions and 0 deletions

View File

@ -91,7 +91,9 @@ private:
#ifdef STM32H7XX
#define CAN_SID(f) ((f).std.SID)
#define CAN_EID(f) ((f).ext.EID)
#define CAN_ID(f) ((f).common.XTD ? CAN_EID(f) : CAN_SID(f))
#else
#define CAN_SID(f) ((f).SID)
#define CAN_EID(f) ((f).EID)
#define CAN_ID(f) ((f).IDE ? CAN_EID(f) : CAN_SID(f))
#endif