Skip to content

Commit 6172386

Browse files
authored
Update ESP32SJA1000.cpp
for esp32 chips with version V3 you need to change writeRegister(REG_IER, 0xef); // enable all interrupts like this
1 parent 382fff7 commit 6172386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ESP32SJA1000.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int ESP32SJA1000Class::begin(long baudRate)
121121
}
122122

123123
modifyRegister(REG_BTR1, 0x80, 0x80); // SAM = 1
124-
writeRegister(REG_IER, 0xff); // enable all interrupts
124+
writeRegister(REG_IER, 0xef); // enable all interrupts
125125

126126
// set filter to allow anything
127127
writeRegister(REG_ACRn(0), 0x00);

0 commit comments

Comments
 (0)