From 865c6c6d6f4174c5874e4cd5136832c25a3b1198 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 15 Mar 2017 23:07:34 +0100 Subject: Simplification of checking Diagnostic response. A CAN message will be considered as a Diagnostic response when its arbitration ID is between standardized 0x7E8 and 0x7EF. Checking which request belong to that response will done in later methods Change-Id: I7a093edf44b62a4552b90fe3d8935f94dc677cf4 Signed-off-by: Romain Forlot --- src/diagnostic/diagnostic-manager.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/diagnostic/diagnostic-manager.hpp') diff --git a/src/diagnostic/diagnostic-manager.hpp b/src/diagnostic/diagnostic-manager.hpp index ff055d5..1db8363 100644 --- a/src/diagnostic/diagnostic-manager.hpp +++ b/src/diagnostic/diagnostic-manager.hpp @@ -88,12 +88,11 @@ public: bool waitForMultipleResponses, const DiagnosticResponseDecoder decoder, const DiagnosticResponseCallback callback, float frequencyHz); - bool is_diagnostic_response(const active_diagnostic_request_t& adr, const can_message_t& cm) const; - active_diagnostic_request_t* is_diagnostic_response(const can_message_t& can_message); openxc_VehicleMessage relay_diagnostic_response(active_diagnostic_request_t* adr, const DiagnosticResponse& response) const; bool conflicting(active_diagnostic_request_t* request, active_diagnostic_request_t* candidate) const; bool clear_to_send(active_diagnostic_request_t* request) const; static int send_request(sd_event_source *s, uint64_t usec, void *userdata); + bool is_diagnostic_response(const can_message_t& cm); }; -- cgit 1.2.3-korg