mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-15 11:03:48 +00:00
Reset rx overflow flag (#144)
This commit is contained in:
@@ -1396,6 +1396,7 @@ byte mcp2515_can::checkReceive(void) {
|
||||
*********************************************************************************************************/
|
||||
byte mcp2515_can::checkError(uint8_t* err_ptr) {
|
||||
byte eflg = mcp2515_readRegister(MCP_EFLG);
|
||||
mcp2515_modifyRegister(MCP_EFLG, 0xFF, 0);
|
||||
if (err_ptr) {
|
||||
*err_ptr = eflg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user