From 416bf2b7d3b4324bfffbe3f70bcb77b7659b2e0c Mon Sep 17 00:00:00 2001 From: jLynx Date: Sat, 8 Apr 2023 09:16:27 +1200 Subject: [PATCH] Added support for rev 3 ESP32 boards --- src/CAN.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CAN.c b/src/CAN.c index 826f9db..c6e1b7b 100644 --- a/src/CAN.c +++ b/src/CAN.c @@ -226,7 +226,7 @@ int CAN_init() { MODULE_CAN->BTR1.B.SAM = 0x1; // enable all interrupts - MODULE_CAN->IER.U = 0xff; + MODULE_CAN->IER.U = 0xef; // Set acceptance filter MODULE_CAN->MOD.B.AFM = __filter.FM; @@ -296,4 +296,4 @@ int CAN_config_filter(const CAN_filter_t* p_filter) { __filter.AMR3 = p_filter->AMR3; return 0; -} \ No newline at end of file +}