Arduino_CAN_BUS_MCP2515 icon indicating copy to clipboard operation
Arduino_CAN_BUS_MCP2515 copied to clipboard

`ext_flg` incorrect, `isExtendedFrame( )` is incorrect !!

Open dreamer1048576 opened this issue 9 months ago • 0 comments

As title,
No one/progress will clean the ext_flg, so the function isExtendedFrame( ) is INCORRECT !
After you send a ext frame, all isExtendedFrame() will return ALWAYS =1 , even you had receive a classic Standard Frame data .
And no one can call clearMsg( ) .

    uint8_t ext ;
// ... ...
              ext = CAN.isExtendedFrame();
              Serial.print("CAN.isExtendedFrame:=");   Serial.println(ext);

... After sending a ext frame :

CAN.isExtendedFrame:=1 ID=000007ff,8,0011223344556677 CAN.isExtendedFrame:=1 ID=000007ff,8,0011223344556677

Actually, the id=0x7ff is a Standard Frame !

-- And, Why Don't you sync with https://github.com/DFRobot/DFRobot_MCP2515 ?

dreamer1048576 avatar Mar 26 '25 08:03 dreamer1048576