From 1ee222a7250896fc7f2e5fb1dc50a7466d81b741 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 16 Mar 2017 02:18:00 +0100 Subject: Implement check of supported diagnostic PID. Supported boolean member about diagnostic messages is now used. When a response is received, completed but not successful, then set the diagnostic message as not supported and clean the request from the queue. Subscription remains for now, not cool but will be fix soon. Change-Id: Ia5dc78d4a770f80f144724f4df6eabd2ffd4b8cc Signed-off-by: Romain Forlot --- src/diagnostic/diagnostic-message.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/diagnostic/diagnostic-message.cpp') diff --git a/src/diagnostic/diagnostic-message.cpp b/src/diagnostic/diagnostic-message.cpp index 7473e7b..62da0dc 100644 --- a/src/diagnostic/diagnostic-message.cpp +++ b/src/diagnostic/diagnostic-message.cpp @@ -67,6 +67,16 @@ DiagnosticResponseCallback diagnostic_message_t::get_callback() const return callback_; } +bool diagnostic_message_t::get_supported() const +{ + return supported_; +} + +void diagnostic_message_t::set_supported(bool value) +{ + supported_ = value; +} + /** * @brief Build a DiagnosticRequest struct to be passed * to diagnostic manager instance. -- cgit 1.2.3-korg