From dd915dd5b0088034ce1fb57e187f114c1e1d769d Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 10 Mar 2017 02:03:02 +0100 Subject: Adding needed getter for diagnostic manager. Useful to determine if both object use the same CAN bus device Change-Id: I97dbf807198a420c305c8fbbd2cb4bfcdda4c294 Signed-off-by: Romain Forlot --- src/can/can-bus-dev.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/can/can-bus-dev.cpp') diff --git a/src/can/can-bus-dev.cpp b/src/can/can-bus-dev.cpp index 3f3dc1c4..32a8906b 100644 --- a/src/can/can-bus-dev.cpp +++ b/src/can/can-bus-dev.cpp @@ -38,6 +38,11 @@ can_bus_dev_t::can_bus_dev_t(const std::string& dev_name) { } +std::string can_bus_dev_t::get_device_name() const +{ + return device_name_; +} + /// @brief Open the can socket and returning it /// @return -1 if something wrong. int can_bus_dev_t::open() -- cgit 1.2.3-korg