diff options
author | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-27 14:40:08 +0200 |
---|---|---|
committer | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-08-30 11:46:04 +0200 |
commit | fa8c188743f5f2b4beaffc5673edc5e1f4c24996 (patch) | |
tree | abcd189376821c7c65f3ff2bae0c224308ae12b5 /low-can-binding/can/message/j1939-message.cpp | |
parent | f516a1228e83c7921a326f52e0055f69fd429fe8 (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/j1939-message.cpp')
-rw-r--r-- | low-can-binding/can/message/j1939-message.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/low-can-binding/can/message/j1939-message.cpp b/low-can-binding/can/message/j1939-message.cpp index 7dc388b3..2d600a1e 100644 --- a/low-can-binding/can/message/j1939-message.cpp +++ b/low-can-binding/can/message/j1939-message.cpp @@ -36,7 +36,6 @@ j1939_message_t::j1939_message_t(): /** * @brief Construct a new j1939 message t::j1939 message t object * - * @param maxdlen The max length of the message * @param length The length of the message * @param format The format of the message * @param data The vector data of the message @@ -45,15 +44,14 @@ j1939_message_t::j1939_message_t(): * @param pgn The PGN of the message * @param addr The address of the message */ -j1939_message_t::j1939_message_t(uint32_t maxdlen, - uint32_t length, +j1939_message_t::j1939_message_t(uint32_t length, message_format_t format, std::vector<uint8_t>& data, uint64_t timestamp, name_t name, pgn_t pgn, uint8_t addr): - message_t(maxdlen,length, format, data, timestamp), + message_t(J1939_MAX_DLEN,length, format, data, timestamp, 0), name_{name}, pgn_{pgn}, addr_{addr} |