Remove: duplicate error code definitions

This commit is contained in:
turmary
2021-01-29 11:24:27 +08:00
parent 300c1c4a4b
commit c45e7935ff
2 changed files with 5 additions and 22 deletions
-22
View File
@@ -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)
+5
View File
@@ -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