summaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/can-decoder.cpp
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-12-15 15:21:34 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit466fa12ede042ea273828f801fbcab24196c4d60 (patch)
tree7a6714b095f5cd0c6337d0850e3e0b39cd059e68 /low-can-binding/can/can-decoder.cpp
parent05e0dcd47f5cbe62de594c801f1c460622847716 (diff)
Update flag FRAME_LAYOUT_IS_BIGENDIAN to BYTE_FRAME_IS_BIG_ENDIAN
Change-Id: I13a3392aecd8d57fac6f94346c4cf209595775b4 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/can-decoder.cpp')
-rw-r--r--low-can-binding/can/can-decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/low-can-binding/can/can-decoder.cpp b/low-can-binding/can/can-decoder.cpp
index 3f05fd53..160a22b1 100644
--- a/low-can-binding/can/can-decoder.cpp
+++ b/low-can-binding/can/can-decoder.cpp
@@ -112,7 +112,7 @@ float decoder_t::parse_signal_bitfield(signal_t& signal, std::shared_ptr<message
bit_position = converter_t::bit_position_swap(message->get_length(),
signal.get_bit_position(),
bit_size);
- if(signal.get_message()->get_flags() & FRAME_LAYOUT_IS_BIGENDIAN)
+ if(signal.get_message()->get_flags() & BYTE_FRAME_IS_BIG_ENDIAN)
message->frame_swap();
data = message->get_data_vector();