examples/receive_check/receive_check.ino ID format fix

This commit is contained in:
Jan Kirchner
2015-10-03 23:18:06 +02:00
parent 3187fa8777
commit 68fd744899
+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
{