From e6a4a15644b3e18232a48764aed32a9e13ec6a1f Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 16 Mar 2017 19:10:38 +0100 Subject: 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 --- src/can/can-bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 decoded_can_message_lock(decoded_can_message_mutex_); -- cgit 1.2.3-korg