summaryrefslogtreecommitdiffstats
path: root/low-can-binding/diagnostic/diagnostic-manager.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-12-06 11:34:05 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit3c7fa35fe09693f367ee9b159723435007ebfa07 (patch)
treead5d5340a754a739e3a9f3bda04f54b439fdefae /low-can-binding/diagnostic/diagnostic-manager.hpp
parent4022a03b70337f6f922e97fb2f77d28058612587 (diff)
diag-mngr: Fix sending and change init
This commit fix the wrong bcm ival1 value set because the struct hasn't been initialized so it use a wrong value that can not be handled by the socket. Initialize diagnotstic manager depending on JSON configuration file This avoid to request engine_speed signal when there isn't any diagnostic_bus configured in the JSON file. Change-Id: I98145a6e20c29a644c856d818f104c6bd8069f9f Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/diagnostic/diagnostic-manager.hpp')
-rw-r--r--low-can-binding/diagnostic/diagnostic-manager.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/low-can-binding/diagnostic/diagnostic-manager.hpp b/low-can-binding/diagnostic/diagnostic-manager.hpp
index c0a8255e..3f74ab79 100644
--- a/low-can-binding/diagnostic/diagnostic-manager.hpp
+++ b/low-can-binding/diagnostic/diagnostic-manager.hpp
@@ -60,6 +60,7 @@ public:
~diagnostic_manager_t();
bool initialize(std::string diagnostic_bus);
+ bool is_initialized() const;
const std::string get_bus_name() const;
const std::string get_bus_device_name() const;