mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-15 11:03:48 +00:00
Merge pull request #20 from btetz/master
Added an offset to the txbuf_n pointer so that the actual ctrl reg value is read.
This commit is contained in:
+1
-1
@@ -769,7 +769,7 @@ INT8U MCP_CAN::sendMsg()
|
||||
do
|
||||
{
|
||||
uiTimeOut++;
|
||||
res1= mcp2515_readRegister(txbuf_n); /* read send buff ctrl reg */
|
||||
res1= mcp2515_readRegister(txbuf_n-1 /* the ctrl reg is located at txbuf_n-1 */); /* read send buff ctrl reg */
|
||||
res1 = res1 & 0x08;
|
||||
}while(res1 && (uiTimeOut < TIMEOUTVALUE));
|
||||
if(uiTimeOut == TIMEOUTVALUE) /* send msg timeout */
|
||||
|
||||
Reference in New Issue
Block a user