diff --git a/examples/CAN_read/CAN_read.ino b/examples/CAN_read/CAN_read.ino index 2d94e80..b43e56a 100644 --- a/examples/CAN_read/CAN_read.ino +++ b/examples/CAN_read/CAN_read.ino @@ -19,7 +19,7 @@ void setup() { void loop() { - if (mcp2515.readMessage(&canMsg) == MCP_CAN::ERROR_OK) { + if (mcp2515.readMessage(&canMsg) == MCP2515::ERROR_OK) { Serial.print(canMsg.can_id, HEX); // print ID Serial.print(" ");