diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-10 10:11:44 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-16 17:10:40 +0100 |
commit | a0b229d33eb8bf076bc40f9a31dbd3a689a335e1 (patch) | |
tree | b48a78476b7cad5c14955a85135224b53347ff5a /src/diagnostic/diagnostic-manager.cpp | |
parent | 19c0faf5dcb5c7e58136f6ba56c65535baac2efb (diff) |
Finalize the class active_diag... to get it compile.
Fix subsequents bugs into the other depending class
diagnostic manager
Change-Id: I8920c489fc15a61a36ff29d58aab59c2e6388f85
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/diagnostic/diagnostic-manager.cpp')
-rw-r--r-- | src/diagnostic/diagnostic-manager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/diagnostic/diagnostic-manager.cpp b/src/diagnostic/diagnostic-manager.cpp index 0b59809..b4de554 100644 --- a/src/diagnostic/diagnostic-manager.cpp +++ b/src/diagnostic/diagnostic-manager.cpp @@ -75,7 +75,7 @@ void diagnostic_manager_t::cleanup_request(active_diagnostic_request_t& entry, b entry.set_in_flight(false); char request_string[128] = {0}; - diagnostic_request_to_string(&entry.get_handle().request, + diagnostic_request_to_string(&entry.get_handle()->request, request_string, sizeof(request_string)); if(entry.get_recurring()) { @@ -116,7 +116,7 @@ bool diagnostic_manager_t::lookup_recurring_request(const DiagnosticRequest* req { active_diagnostic_request_t& candidate = entry; if(candidate.get_can_bus_dev()->get_device_name() == bus_->get_device_name() && - diagnostic_request_equals(&candidate.get_handle().request, request)) + diagnostic_request_equals(&candidate.get_handle()->request, request)) { find_and_erase(entry, recurring_requests_); //existingEntry = entry; @@ -171,7 +171,7 @@ bool diagnostic_manager_t::add_request(DiagnosticRequest* request, const std::st entry.set_handle(shims_, request); char request_string[128] = {0}; - diagnostic_request_to_string(&entry.get_handle().request, request_string, + diagnostic_request_to_string(&entry.get_handle()->request, request_string, sizeof(request_string)); find_and_erase(entry, non_recurring_requests_); @@ -213,7 +213,7 @@ bool diagnostic_manager_t::add_recurring_request(DiagnosticRequest* request, con entry.set_handle(shims_, request); char request_string[128] = {0}; - diagnostic_request_to_string(&entry.get_handle().request, request_string, + diagnostic_request_to_string(&entry.get_handle()->request, request_string, sizeof(request_string)); find_and_erase(entry, recurring_requests_); @@ -253,4 +253,4 @@ void diagnostic_manager_t::init_diagnostic_shims() { shims_ = diagnostic_init_shims(shims_logger, shims_send, NULL); initialized_ = true; -}
\ No newline at end of file +} |