fix something in readMsgBufID

This commit is contained in:
loovee
2017-06-27 17:24:43 +08:00
parent 1624f47990
commit 4345845bb0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
*********************************************************************************************************/
*********************************************************************************************************/
+1 -1
View 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