summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-14 10:01:02 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:15:55 +0100
commit89aa6559ca4ad28c0e9d9bb313d2d091de51f113 (patch)
treeea52f122ca3c3831f532337b2e7f4a9078d32ade /src
parentd1282ada6335171914a23c328c8a17c809557e62 (diff)
Enabling recurrent check of diagnostic requests.
Change-Id: I16aff65c5ce22faac78e3f1d99ce7b33941c007c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/low-can-binding.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/low-can-binding.cpp b/src/low-can-binding.cpp
index f7833d89..f6e9849f 100644
--- a/src/low-can-binding.cpp
+++ b/src/low-can-binding.cpp
@@ -143,6 +143,7 @@ static int subscribe_unsubscribe_signals(struct afb_req request, bool subscribe,
//TODO: Adding callback requesting ignition status: diag_req, sig.c_str(), false, obd2_signal_t::decode_obd2_response, obd2_signal_t::check_ignition_status, frequency);
sd_event_add_time(afb_daemon_get_event_loop(binder_interface->daemon), &source, CLOCK_MONOTONIC, frequency*MICRO, 0,
configuration_t::instance().get_diagnostic_manager().send_request, diag_req);
+ sd_event_source_set_enabled(source, SD_EVENT_ON);
}
ret = subscribe_unsubscribe_signal(request, subscribe, sig);