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/can/can-bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/can/can-bus.cpp') diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp index 7c6ae429..18417f9c 100644 --- a/src/can/can-bus.cpp +++ b/src/can/can-bus.cpp @@ -179,7 +179,7 @@ void can_bus_t::can_decode_message() new_can_message_cv_.wait(can_message_lock); can_message = next_can_message(); - active_diagnostic_request_t* adr = configuration_t::instance().get_diagnostic_manager().is_diagnostic_response(can_message); + if(configuration_t::instance().get_diagnostic_manager().is_diagnostic_response(can_message)) if(adr != nullptr) process_diagnostic_signals(adr, can_message); else -- cgit 1.2.3-korg