From 6f8e7a4c10013f6b118cd21d35f3b025ed0ab852 Mon Sep 17 00:00:00 2001 From: yuki Date: Thu, 15 May 2025 18:05:31 +0900 Subject: [PATCH] Fixed a bug where the CAN baud rate was reduced to half. --- src/ESP32SJA1000.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESP32SJA1000.cpp b/src/ESP32SJA1000.cpp index 309e030..13476a4 100644 --- a/src/ESP32SJA1000.cpp +++ b/src/ESP32SJA1000.cpp @@ -121,7 +121,7 @@ int ESP32SJA1000Class::begin(long baudRate) } modifyRegister(REG_BTR1, 0x80, 0x80); // SAM = 1 - writeRegister(REG_IER, 0xff); // enable all interrupts + writeRegister(REG_IER, 0xef); // enable all interrupts // set filter to allow anything writeRegister(REG_ACRn(0), 0x00);