aboutsummaryrefslogtreecommitdiffstats
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 673e4f49..b9d78c0b 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 5a769442..823d8864 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 c44b064e..759437bc 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)