diff --git a/src/mcp2515_can_dfs.h b/src/mcp2515_can_dfs.h index 2948213..d2560b3 100644 --- a/src/mcp2515_can_dfs.h +++ b/src/mcp2515_can_dfs.h @@ -470,28 +470,6 @@ typedef enum { CAN_1000KBPS } MCP2515_BITTIME_SETUP; -#define CAN_OK (0) -#define CAN_FAILINIT (1) -#define CAN_FAILTX (2) -#define CAN_MSGAVAIL (3) -#define CAN_NOMSG (4) -#define CAN_CTRLERROR (5) -#define CAN_GETTXBFTIMEOUT (6) -#define CAN_SENDMSGTIMEOUT (7) -#define CAN_FAIL (0xff) - - -// #define CAN_OK (0) -// #define CAN_FAILINIT (1) -// #define CAN_FAILTX (2) -// #define CAN_MSGAVAIL (3) -#define CAN_NOMSG (4) -#define CAN_CTRLERROR (5) -#define CAN_GETTXBFTIMEOUT (6) -#define CAN_SENDMSGTIMEOUT (7) -#define CAN_FAIL (0xff) - - diff --git a/src/mcp_can.h b/src/mcp_can.h index 5f6c301..ae2486c 100644 --- a/src/mcp_can.h +++ b/src/mcp_can.h @@ -13,6 +13,11 @@ #define CAN_MSGAVAIL (3) +#define CAN_NOMSG (4) +#define CAN_CTRLERROR (5) +#define CAN_GETTXBFTIMEOUT (6) +#define CAN_SENDMSGTIMEOUT (7) +#define CAN_FAIL (0xff) class MCP_CAN