diag-mngr: Fix sending and change init 94/23294/4
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 6 Dec 2019 10:34:05 +0000 (11:34 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 9 Jan 2020 15:25:36 +0000 (16:25 +0100)
commit3c7fa35fe09693f367ee9b159723435007ebfa07
treead5d5340a754a739e3a9f3bda04f54b439fdefae
parent4022a03b70337f6f922e97fb2f77d28058612587
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>
low-can-binding/binding/low-can-cb.cpp
low-can-binding/diagnostic/diagnostic-manager.cpp
low-can-binding/diagnostic/diagnostic-manager.hpp