X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fbinding%2Flow-can-subscription.cpp;h=05367b79c56ee6050f76990ebcf73418cd0f2d0b;hb=779da0a54b29db5dd4c12387970026a264d2e6cb;hp=c3a0b3fa55d387737ddea4656e78655af061e9bd;hpb=5b9913d4d7fcf273380b2aeb780cf0a42cc99725;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/binding/low-can-subscription.cpp b/low-can-binding/binding/low-can-subscription.cpp index c3a0b3fa..05367b79 100644 --- a/low-can-binding/binding/low-can-subscription.cpp +++ b/low-can-binding/binding/low-can-subscription.cpp @@ -364,7 +364,7 @@ int low_can_subscription_t::open_socket(low_can_subscription_t &subscription, co int ret = -1; if(! subscription.socket_) { - if(flags & BCM_PROTOCOL) + if(flags & CAN_PROTOCOL) { subscription.socket_ = std::make_shared(); if( subscription.signal_ ) @@ -666,7 +666,7 @@ int low_can_subscription_t::create_rx_filter(std::shared_ptr cfd_vect = cm->convert_to_canfd_frame_vector(); - if(subscription.open_socket(subscription, bus_name, BCM_PROTOCOL) < 0) + if(subscription.open_socket(subscription, bus_name, CAN_PROTOCOL) < 0) return -1; struct bcm_msg &bcm_cm = cm->get_bcm_msg();