X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=CAN-binder%2Flow-can-binding%2Fbinding%2Flow-can-cb.cpp;h=9a0c501e783edb2068a7e1e34a8a061a8bae48df;hb=5bb0cc7268f47575b46baa1d7590f2727e8e193d;hp=712c83c2c9ed85c50d7fd23f735e6f621679d02a;hpb=7f6c164aae3e7dbc558f21679b29c0a2d9d09e21;p=apps%2Fagl-service-can-low-level.git diff --git a/CAN-binder/low-can-binding/binding/low-can-cb.cpp b/CAN-binder/low-can-binding/binding/low-can-cb.cpp index 712c83c2..9a0c501e 100644 --- a/CAN-binder/low-can-binding/binding/low-can-cb.cpp +++ b/CAN-binder/low-can-binding/binding/low-can-cb.cpp @@ -344,12 +344,12 @@ static int subscribe_unsubscribe_signal(struct afb_req request, bool subscribe, int subscribe_unsubscribe_diagnostic_messages(struct afb_req request, bool subscribe, std::vector > diagnostic_messages, struct event_filter_t& event_filter) { int rets = 0; - application_t& conf = application_t::instance(); - diagnostic_manager_t& diag_m = conf.get_diagnostic_manager(); + application_t& app = application_t::instance(); + diagnostic_manager_t& diag_m = app.get_diagnostic_manager(); for(const auto& sig : diagnostic_messages) { - DiagnosticRequest* diag_req = conf.get_request_from_diagnostic_message(sig->get_name()); + DiagnosticRequest* diag_req = app.get_request_from_diagnostic_message(sig->get_name()); float frequency = std::isnan(event_filter.frequency) ? sig->get_frequency() : event_filter.frequency; // If the requested diagnostic message isn't supported by the car then unsubcribe it