diff --git a/examples/CAN_read/CAN_read.ino b/examples/CAN_read/CAN_read.ino index 8767340..e0bc45a 100644 --- a/examples/CAN_read/CAN_read.ino +++ b/examples/CAN_read/CAN_read.ino @@ -10,25 +10,23 @@ void setup() { mcp2551.begin(CAN_125KBPS); Serial.println("------- CAN Read ----------"); Serial.println("ID DLC DATA"); - } void loop() { if (mcp2551.readMessage(&canMsg) == MCP_CAN::ERROR_OK) { - + Serial.print(canMsg.can_id); // print ID Serial.print(canMsg.can_dlc); // print DLC - for(int i = 0; i