mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-07-27 19:55:59 +00:00
fix something in readMsgBufID
This commit is contained in:
+2
-2
@@ -902,7 +902,7 @@ byte MCP_CAN::readMsgBuf(byte *len, byte buf[])
|
||||
** Function name: readMsgBufID
|
||||
** Descriptions: read message buf and can bus source ID
|
||||
*********************************************************************************************************/
|
||||
byte MCP_CAN::readMsgBufID(byte *ID, byte *len, byte buf[])
|
||||
byte MCP_CAN::readMsgBufID(unsigned long *ID, byte *len, byte buf[])
|
||||
{
|
||||
byte rc;
|
||||
rc = readMsg();
|
||||
@@ -970,4 +970,4 @@ byte MCP_CAN::isExtendedFrame(void)
|
||||
|
||||
/*********************************************************************************************************
|
||||
END FILE
|
||||
*********************************************************************************************************/
|
||||
*********************************************************************************************************/
|
||||
@@ -125,7 +125,7 @@ public:
|
||||
byte sendMsgBuf(unsigned long id, byte ext, byte rtr, byte len, byte *buf); // send buf
|
||||
byte sendMsgBuf(unsigned long id, byte ext, byte len, byte *buf); // send buf
|
||||
byte readMsgBuf(byte *len, byte *buf); // read buf
|
||||
byte readMsgBufID(byte *ID, byte *len, byte *buf); // read buf with object ID
|
||||
byte readMsgBufID(unsigned long *ID, byte *len, byte *buf); // read buf with object ID
|
||||
byte checkReceive(void); // if something received
|
||||
byte checkError(void); // if something error
|
||||
unsigned long getCanId(void); // get can id when receive
|
||||
|
||||
Reference in New Issue
Block a user