Longan-Labs / Arduino_CAN_BUS_MCP2515

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

Probably invalid transmission check? #8

Closed rudwna closed 1 year ago

rudwna commented 10 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?