diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-26 18:27:35 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-27 01:03:34 +0200 |
commit | eb5fc27fce3d832f1f969ebb01056a69c5f4c120 (patch) | |
tree | 5c07e6f015fdfa3baa0648828def26248795703b /CAN-binder/low-can-binding/can/can-decoder.hpp | |
parent | abd0190c2ba3a624272ed1f6a3a9c8fe8c4dd140 (diff) |
Check last value before send the event, if no change no event.
Adding a boolean parameter similarly of existing function to know if we would send
the event.
Change-Id: I03ee17f656065e556fd2b72b160b140852b68dcc
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can/can-decoder.hpp')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-decoder.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CAN-binder/low-can-binding/can/can-decoder.hpp b/CAN-binder/low-can-binding/can/can-decoder.hpp index ebe1de20..15e02294 100644 --- a/CAN-binder/low-can-binding/can/can-decoder.hpp +++ b/CAN-binder/low-can-binding/can/can-decoder.hpp @@ -36,7 +36,7 @@ public: float value, bool* send); static openxc_DynamicField translateSignal(can_signal_t& signal, can_message_t& message, - const std::vector<can_signal_t>& signals); + const std::vector<can_signal_t>& signals, bool* send); static openxc_DynamicField decodeSignal(can_signal_t& signal, const can_message_t& message, const std::vector<can_signal_t>& signals, bool* send); |