aboutsummaryrefslogtreecommitdiffstats
path: root/src/can
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-15 23:07:34 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:21:57 +0100
commit865c6c6d6f4174c5874e4cd5136832c25a3b1198 (patch)
tree58ef5ee4b6b3cbecb03920ec666a45f2509bfb50 /src/can
parentdaa713ab23d8bb8192fc4e86aaf6720e830cdab9 (diff)
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 <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can')
-rw-r--r--src/can/can-bus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/can/can-bus.cpp b/src/can/can-bus.cpp
index 7c6ae42..18417f9 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