summaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/message/can-message.cpp
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-08-27 14:40:08 +0200
committerArthur Guyader <arthur.guyader@iot.bzh>2019-08-30 11:46:04 +0200
commitfa8c188743f5f2b4beaffc5673edc5e1f4c24996 (patch)
treeabcd189376821c7c65f3ff2bae0c224308ae12b5 /low-can-binding/can/message/can-message.cpp
parentf516a1228e83c7921a326f52e0055f69fd429fe8 (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 Change-Id: I56f9cd54d8b9822636311c603501326b36692cf4 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Diffstat (limited to 'low-can-binding/can/message/can-message.cpp')
-rw-r--r--low-can-binding/can/message/can-message.cpp13
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