mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-14 18:42:56 +00:00
@@ -35,7 +35,7 @@ START_INIT:
|
||||
|
||||
void loop()
|
||||
{
|
||||
if(MCP_STAT_RXIF_MASK == CAN.checkReceive()) // check if data coming
|
||||
if(CAN_MSGAVAIL == CAN.checkReceive()) // check if data coming
|
||||
{
|
||||
CAN.readMsgBuf(&len, buf); // read data, len: data length, buf: data buf
|
||||
|
||||
@@ -49,4 +49,4 @@ void loop()
|
||||
|
||||
/*********************************************************************************************************
|
||||
END FILE
|
||||
*********************************************************************************************************/
|
||||
*********************************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user