-bool diagnostic_manager_t::is_diagnostic_response(const active_diagnostic_request_t& adr, const can_message_t& cm) const
-{
- if(cm.get_id() == adr.get_id() + DIAGNOSTIC_RESPONSE_ARBITRATION_ID_OFFSET)
- return true;
- DEBUG(binder_interface, "Doesn't find an active diagnostic request that matches.");
- return false;
-}
-
-active_diagnostic_request_t* diagnostic_manager_t::is_diagnostic_response(const can_message_t& can_message)
-{
- for (auto& entry : non_recurring_requests_)
- {
- if(is_diagnostic_response(*entry, can_message))
- return entry;
- }
-
- for (auto& entry : recurring_requests_)
- {
- if(is_diagnostic_response(*entry, can_message))
- return entry;
- }
- return nullptr;
-}