diff --git a/examples/receive_check/receive_check.ino b/examples/receive_check/receive_check.ino index 78c3deb..4fdda62 100644 --- a/examples/receive_check/receive_check.ino +++ b/examples/receive_check/receive_check.ino @@ -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