summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/configuration.cpp2
-rw-r--r--src/configuration.hpp2
-rw-r--r--src/low-can-binding.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 673e4f4..b9d78c0 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -57,7 +57,7 @@ configuration_t& configuration_t::get_configuration()
return *this;
}
-can_bus_t& configuration_t::get_can_bus_manager() const
+can_bus_t& configuration_t::get_can_bus_manager()
{
return can_bus_manager_;
}
diff --git a/src/configuration.hpp b/src/configuration.hpp
index 5a76944..823d886 100644
--- a/src/configuration.hpp
+++ b/src/configuration.hpp
@@ -55,7 +55,7 @@ class configuration_t
configuration_t& get_configuration() const;
- can_bus_t& get_can_bus_manager() const;
+ can_bus_t& get_can_bus_manager();
diagnostic_manager_t& get_diagnostic_manager() const;
diff --git a/src/low-can-binding.cpp b/src/low-can-binding.cpp
index c44b064..759437b 100644
--- a/src/low-can-binding.cpp
+++ b/src/low-can-binding.cpp
@@ -222,7 +222,7 @@ extern "C"
{
config = new configuration_t();
- can_bus_t can_bus_manager = config->get_can_bus_manager();
+ can_bus_t& can_bus_manager = config->get_can_bus_manager();
/* Open CAN socket */
if(can_bus_manager.init_can_dev() == 0)