mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-15 02:52:53 +00:00
Merge pull request #3 from woodward1/patch-3
fixed corrupted can id bug
This commit is contained in:
+1
-1
@@ -473,7 +473,7 @@ void MCP_CAN::mcp2515_read_id( const INT8U mcp_addr,
|
||||
/* extended id */
|
||||
*id = (*id<<2) + (tbufdata[MCP_SIDL] & 0x03);
|
||||
*id <<= 16;
|
||||
*id = *id +(tbufdata[MCP_EID8]<<8) + tbufdata[MCP_EID0];
|
||||
*id = *id + (unsigned)(tbufdata[MCP_EID8]<<8) + tbufdata[MCP_EID0];
|
||||
*ext = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user