summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--low-can-binding/can/message-definition.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/low-can-binding/can/message-definition.cpp b/low-can-binding/can/message-definition.cpp
index ab7a884b..b761ad68 100644
--- a/low-can-binding/can/message-definition.cpp
+++ b/low-can-binding/can/message-definition.cpp
@@ -64,7 +64,9 @@ const std::string message_definition_t::get_bus_device_name() const
uint32_t message_definition_t::get_id() const
{
- return id_;
+ return id_ & CAN_EFF_MASK ?
+ id_ | CAN_EFF_FLAG :
+ id_;
}
bool message_definition_t::is_fd() const
@@ -105,4 +107,4 @@ uint32_t message_definition_t::get_length() const
uint32_t message_definition_t::get_flags() const
{
return flags_;
-} \ No newline at end of file
+}