diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 19:10:38 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 19:10:38 +0100 |
commit | e6a4a15644b3e18232a48764aed32a9e13ec6a1f (patch) | |
tree | 9f0c2452e60746810cf6007d81f7248b11f6c85b /src/can | |
parent | e6fb0b7ed4e583a833027aafee515295d9feceac (diff) |
Fix: decoded name will be prefixed as at subscription.
Reason is that the simple message is used to match a subscribed signals
in the map. So it has to be the same that at the subscription.
Change-Id: Ie9504583948027523a7288b5e4a20707c49b6d59
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can')
-rw-r--r-- | src/can/can-bus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp index 29e63b7e..0c2337c5 100644 --- a/src/can/can-bus.cpp +++ b/src/can/can-bus.cpp @@ -91,7 +91,7 @@ int can_bus_t::process_can_signals(can_message_t& can_message) { decoded_message = decoder_t::translateSignal(*sig, can_message, configuration_t::instance().get_can_signals()); - openxc_SimpleMessage s_message = build_SimpleMessage(sig->get_generic_name(), decoded_message); + openxc_SimpleMessage s_message = build_SimpleMessage(sig->get_name(), decoded_message); vehicle_message = build_VehicleMessage(s_message); std::lock_guard<std::mutex> decoded_can_message_lock(decoded_can_message_mutex_); |