From fd638a10e6e0e1aaac761d2be3e7897118f30a1e Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 12 Apr 2016 23:15:25 +0300 Subject: [PATCH] Update CAN_read.ino --- examples/CAN_read/CAN_read.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(" ");