diff --git a/example/receive_check/receive_check.ino b/example/receive_check/receive_check.ino index 19c9638..a56688d 100644 --- a/example/receive_check/receive_check.ino +++ b/example/receive_check/receive_check.ino @@ -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 -*********************************************************************************************************/ \ No newline at end of file +*********************************************************************************************************/