Longan-Labs / Arduino_CAN_BUS_MCP2515

Arduino CAN Bus library, MCP2515/MCP2551
https://www.longan-labs.cc/
MIT License
118 stars 371 forks source link

Probably invalid transmission check? #8

Closed rudwna closed 9 months ago

rudwna commented 9 years ago

Hi, In mcp_can.cpp, line 707 there's a check if the message has been transmitted:

res1= mcp2515_readRegister(txbuf_n); /* read send buff ctrl reg */
res1 = res1 & 0x08;

but shouldn't it read txbuf_n - 1 instead of txbuf_n since txbuf_n will be SIDH address rather than CTRL address?