Code Review
/
apps
/
low-level-can-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix: decoded name will be prefixed as at subscription.
[apps/low-level-can-service.git]
/
src
/
can
/
can-bus.cpp
diff --git
a/src/can/can-bus.cpp
b/src/can/can-bus.cpp
index
31cb4b0
..
0c2337c
100644
(file)
--- a/
src/can/can-bus.cpp
+++ b/
src/can/can-bus.cpp
@@
-29,6
+29,7
@@
#include "can-bus.hpp"
#include "can-bus.hpp"
+#include "can-signals.hpp"
#include "can-decoder.hpp"
#include "../configuration.hpp"
#include "../utils/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());
{
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_);
vehicle_message = build_VehicleMessage(s_message);
std::lock_guard<std::mutex> 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.
*
* @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.
* @param[in] can_message - a single CAN message from the CAN socket read, to be decode.
*
* @return How many signals has been decoded.