diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-08 00:21:21 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:09:03 +0100 |
commit | 64d3ead0ce87091a3489dd9796a9f77f241c468b (patch) | |
tree | 96c562c7f75dda78dcd627f4ad8115adc7eeaead /src/can/can-bus.cpp | |
parent | fdfd5bc284ffdd32f6b43b20d3297c6d8af3a714 (diff) |
It isn't needed to initialize diag manager
for each can_bus_dev_t instance
Indeed, generator will write the diag manager objects statically with the
correct can_bus_dev_t instance to use.
Change-Id: Ib52d93bff576ef962dc141f5936133e878977017
Diffstat (limited to 'src/can/can-bus.cpp')
-rw-r--r-- | src/can/can-bus.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp index 034e0ac9..699cb8c3 100644 --- a/src/can/can-bus.cpp +++ b/src/can/can-bus.cpp @@ -31,7 +31,6 @@ #include "can/can-decoder.hpp" #include "utils/openxc-utils.hpp" -#include "obd2/diagnostic-manager.hpp" extern "C" { @@ -93,7 +92,7 @@ void can_bus_t::can_decode_message() DEBUG(binder_interface, "Operator[] key char: %s, event valid? %d", sig.generic_name, afb_event_is_valid(s[sig.generic_name])); DEBUG(binder_interface, "Operator[] key string: %s, event valid? %d", sig.generic_name, afb_event_is_valid(s[std::string(sig.generic_name)])); DEBUG(binder_interface, "Nb elt matched char: %d", (int)s.count(sig.generic_name)); - DEBUG(binder_interface, "Nb elt matched string: %d", (int)s.count(std::string(sig.generic_name))); */ + DEBUG(binder_interface, "Nb elt matched string: %d", (int)s.count(std::string(sig.generic_name)));*/ if( s.find(sig->generic_name) != s.end() && afb_event_is_valid(s[sig->generic_name])) { decoded_message = decoder.translateSignal(*sig, can_message, get_can_signals()); @@ -365,7 +364,7 @@ std::map<std::string, std::shared_ptr<can_bus_dev_t>> can_bus_t::get_can_devices * @param const string representing the device name into the linux /dev tree */ can_bus_dev_t::can_bus_dev_t(const std::string& dev_name) - : device_name_{dev_name}, can_socket_{-1}, diagnostic_manager_{diagnostic_manager_t(*this)} + : device_name_{dev_name}, can_socket_{-1} {} /** |