diff options
Diffstat (limited to 'src/can/can-bus.cpp')
-rw-r--r-- | src/can/can-bus.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp index 851f62a..034e0ac 100644 --- a/src/can/can-bus.cpp +++ b/src/can/can-bus.cpp @@ -31,6 +31,7 @@ #include "can/can-decoder.hpp" #include "utils/openxc-utils.hpp" +#include "obd2/diagnostic-manager.hpp" extern "C" { @@ -363,10 +364,9 @@ 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} -{ -} +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)} +{} /** * @brief Open the can socket and returning it |