diff options
Diffstat (limited to 'low-can-binding/can')
-rw-r--r-- | low-can-binding/can/message-definition.cpp | 4 | ||||
-rw-r--r-- | low-can-binding/can/message/message.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/low-can-binding/can/message-definition.cpp b/low-can-binding/can/message-definition.cpp index 80609827..63541277 100644 --- a/low-can-binding/can/message-definition.cpp +++ b/low-can-binding/can/message-definition.cpp @@ -79,12 +79,12 @@ uint32_t message_definition_t::get_id() const bool message_definition_t::is_fd() const { - return (flags_&FD_FRAME); + return (flags_ & CAN_PROTOCOL_WITH_FD_FRAME); } bool message_definition_t::is_j1939() const { - return (flags_&J1939_PROTOCOL); + return (flags_ & J1939_PROTOCOL); } bool message_definition_t::is_isotp() const diff --git a/low-can-binding/can/message/message.hpp b/low-can-binding/can/message/message.hpp index 7f13ac47..af34615a 100644 --- a/low-can-binding/can/message/message.hpp +++ b/low-can-binding/can/message/message.hpp @@ -37,13 +37,13 @@ */ #define INVALID_FLAG 0x0001 -#define BCM_PROTOCOL 0x0002 +#define CAN_PROTOCOL 0x0002 #define J1939_PROTOCOL 0x0004 #define J1939_ADDR_CLAIM_PROTOCOL 0x0008 #define ISOTP_PROTOCOL 0x0010 #define ISOTP_SEND 0x0020 #define ISOTP_RECEIVE 0x0040 -#define FD_FRAME 0x0080 +#define CAN_PROTOCOL_WITH_FD_FRAME 0x0080 /// @class message_t /// |