From 89aa6559ca4ad28c0e9d9bb313d2d091de51f113 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 14 Mar 2017 10:01:02 +0100 Subject: Enabling recurrent check of diagnostic requests. Change-Id: I16aff65c5ce22faac78e3f1d99ce7b33941c007c Signed-off-by: Romain Forlot --- src/low-can-binding.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit 1.2.3-korg