aboutsummaryrefslogtreecommitdiffstats
path: root/fw/tests/system/eeprom_can_systest.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-01 11:21:25 -0400
committerSam Anthony <sam@samanthony.xyz>2025-11-01 11:21:25 -0400
commitd2376ed99656b5e6bad4f649c108d1908875078b (patch)
tree02065ea2044fe4cf24a05eb75168994e7aa8b902 /fw/tests/system/eeprom_can_systest.c
parent3907711d2abca4277e1dbe01b98e0c7f3cc1304e (diff)
downloadcan-gauge-interface-d2376ed99656b5e6bad4f649c108d1908875078b.zip
update systests
Diffstat (limited to 'fw/tests/system/eeprom_can_systest.c')
-rw-r--r--fw/tests/system/eeprom_can_systest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fw/tests/system/eeprom_can_systest.c b/fw/tests/system/eeprom_can_systest.c
index 14e8f2d..0495e79 100644
--- a/fw/tests/system/eeprom_can_systest.c
+++ b/fw/tests/system/eeprom_can_systest.c
@@ -18,10 +18,10 @@
#include "eeprom.h"
static const CanId id = {
- .type = CAN_ID_STD,
- .sid = {0x1, 0x23},
+ .isExt = false,
+ .sid = 0x123,
};
-static const U16 addr = {0x00, 0x0A};
+static const U16 addr = 0x000A;
void
main(void) {
@@ -33,8 +33,8 @@ main(void) {
// Setup MCP2515 CAN controller
canSetBitTiming(CAN_TIMING_10K);
CanId mask = {
- .type=CAN_ID_STD,
- .sid = {0xFF, 0xFF},
+ .isExt = false,
+ .sid = 0x7FF,
};
canSetMask0(&mask); // set masks
canSetMask1(&mask);