diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 19:25:11 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 19:25:11 +0100 |
commit | 008944a6ba6510d1011586bdabd774283366ebc1 (patch) | |
tree | d9c48601102698d3b1090aec9b7dddf9fb1a6ba9 /src/diagnostic | |
parent | 11896f4d36c4c5c81cf86e8356eb5b3777272f4b (diff) |
Diagnostic requests will occur depending on their frequency.
Hardcoded offset was for testing purpose, now we can use frequency offset.
Change-Id: I920e61cd8f587ead9c77aec158edb4dee28b927d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/diagnostic')
-rw-r--r-- | src/diagnostic/diagnostic-manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diagnostic/diagnostic-manager.cpp b/src/diagnostic/diagnostic-manager.cpp index 5a8d23b..07b08ca 100644 --- a/src/diagnostic/diagnostic-manager.cpp +++ b/src/diagnostic/diagnostic-manager.cpp @@ -459,7 +459,7 @@ int diagnostic_manager_t::send_request(sd_event_source *s, uint64_t usec, void * { usec = usec + (uint64_t)(frequency_clock_t::frequency_to_period(adr->get_frequency_clock().get_frequency())*MICRO); DEBUG(binder_interface, "send_request: Event loop state: %d. usec: %ld", sd_event_get_state(afb_daemon_get_event_loop(binder_interface->daemon)), usec); - if(sd_event_source_set_time(s, usec+1000000) >= 0) + if(sd_event_source_set_time(s, usec) >= 0) if(sd_event_source_set_enabled(s, SD_EVENT_ON) >= 0) return 0; sd_event_source_unref(s); |