X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fcan%2Fcan-bus.cpp;h=0c2337c5d0b062e0fb8c93f1a1d4089e73e087c3;hb=e6a4a15644b3e18232a48764aed32a9e13ec6a1f;hp=31cb4b083d01c3962b29660878aaa9a55969413a;hpb=6e4b2f9c0bcdfb3106d9f3b5bdb9316fcdebd9b2;p=apps%2Flow-level-can-service.git diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp index 31cb4b0..0c2337c 100644 --- a/src/can/can-bus.cpp +++ b/src/can/can-bus.cpp @@ -29,6 +29,7 @@ #include "can-bus.hpp" +#include "can-signals.hpp" #include "can-decoder.hpp" #include "../configuration.hpp" #include "../utils/signals.hpp" @@ -90,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_); @@ -108,8 +109,7 @@ int can_bus_t::process_can_signals(can_message_t& can_message) * @brief Will make the decoding operation on a diagnostic CAN message.It will add to * the vehicle_message queue the decoded message and tell the event push thread to process it. * - * @param[in] entry - an active_diagnostic_request_t object that made the request - * about that diagnostic CAN message. + * @param[in] manager - the diagnostic manager object that handle diagnostic communication * @param[in] can_message - a single CAN message from the CAN socket read, to be decode. * * @return How many signals has been decoded.