diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-26 16:19:20 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-28 16:11:47 +0100 |
commit | 4963f654612f4a1411b9980601a725026c57da29 (patch) | |
tree | 1ebe21d40a7e10b13911895fbcc3699557c770ba /low-can-binding/can/message/can-message.cpp | |
parent | b37ea4acd86941e587b6eefe1dca262e3bf21f12 (diff) |
Move attributes flags and maxdlen
This commit moves attributes flags and maxdlen from
class can_message_t to class message_t.
Bug-AGL : SPEC-2779
Bug-AGL: SPEC-2976
Change-Id: I56f9cd54d8b9822636311c603501326b36692cf4
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can/message/can-message.cpp')
-rw-r--r-- | low-can-binding/can/message/can-message.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/low-can-binding/can/message/can-message.cpp b/low-can-binding/can/message/can-message.cpp index deca5c72..9bc8787f 100644 --- a/low-can-binding/can/message/can-message.cpp +++ b/low-can-binding/can/message/can-message.cpp @@ -29,8 +29,7 @@ can_message_t::can_message_t() : message_t(), id_{0}, - rtr_flag_{false}, - flags_{0} + rtr_flag_{false} {} can_message_t::can_message_t(uint32_t maxdlen, @@ -41,10 +40,9 @@ can_message_t::can_message_t(uint32_t maxdlen, uint32_t flags, std::vector<uint8_t>& data, uint64_t timestamp) - : message_t(maxdlen, length, format, data, timestamp), + : message_t(maxdlen, length, format, data, timestamp, flags), id_{id}, - rtr_flag_{rtr_flag}, - flags_{flags} + rtr_flag_{rtr_flag} {} /// @@ -293,8 +291,3 @@ void can_message_t::set_bcm_msg(struct bcm_msg bcm_msg) { bcm_msg_ = bcm_msg; } - -uint32_t can_message_t::get_flags() -{ - return flags_; -}
\ No newline at end of file |