Merge pull request #21 from hurvajs/master

examples/receive_check/receive_check.ino ID format fix
This commit is contained in:
Lowaichung
2015-10-13 18:22:22 +08:00
+3 -3
View File
@@ -42,11 +42,11 @@ void loop()
{
CAN.readMsgBuf(&len, buf); // read data, len: data length, buf: data buf
unsigned char canId = CAN.getCanId();
unsigned long canId = CAN.getCanId();
Serial.println("-----------------------------");
Serial.println("get data from ID: ");
Serial.println(canId);
Serial.print("get data from ID: ");
Serial.println(canId, HEX);
for(int i = 0; i<len; i++) // print the data
{