diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-19 12:15:07 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-19 16:19:08 +0200 |
commit | e4a50a3e96aa39346ad7212cae984524276973dd (patch) | |
tree | 8a8ba1e7c4db73c5c94d025e0364e1fef87c04c6 /CAN-binder/low-can-binding/can/can-decoder.cpp | |
parent | 7bde3f53dbbbf688506a32e89c27c8aa69a86a3f (diff) |
Added timestamp to received CAN messages
and store into frequency_clock_t.
Change-Id: If209070298bd9df49297fdcbed554770e1bc0e4a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-decoder.cpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-decoder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CAN-binder/low-can-binding/can/can-decoder.cpp b/CAN-binder/low-can-binding/can/can-decoder.cpp index b0d7bb8a..aa1f57ed 100644 --- a/CAN-binder/low-can-binding/can/can-decoder.cpp +++ b/CAN-binder/low-can-binding/can/can-decoder.cpp @@ -172,6 +172,7 @@ openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, const can_m *send = false; } signal.set_last_value(value); + signal.set_timestamp(message.get_timestamp()); signal.get_message()->set_last_value(message); return decoded_value; } |