Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 9, 2024
1 parent cde17f1 commit e53b27a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/libcyphal/transport/can/transport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,9 @@ class TransportImpl final : public ICanTransport, private TransportDelegate
if (total_message_ports_ > 0)
{
const auto msg_visitor = [&filters](RxSubscription& rx_subscription) {
// Build and store a single message filter
const auto msb_flt = ::canardMakeFilterForSubject(rx_subscription.port_id);
filters.emplace_back(Filter{msb_flt.extended_can_id, msb_flt.extended_mask});
// Make and store a single message filter.
const auto flt = ::canardMakeFilterForSubject(rx_subscription.port_id);
filters.emplace_back(Filter{flt.extended_can_id, flt.extended_mask});
};
ports_count += RxSubscriptionTree::visitCounting(subs_trees[CanardTransferKindMessage], msg_visitor);
}
Expand All @@ -625,7 +625,7 @@ class TransportImpl final : public ICanTransport, private TransportDelegate
if ((total_service_ports_ > 0) && !is_anonymous)
{
const auto svc_visitor = [&filters, local_node_id](RxSubscription& rx_subscription) {
//
// Make and store a single service filter.
const auto flt = ::canardMakeFilterForService(rx_subscription.port_id, local_node_id);
filters.emplace_back(Filter{flt.extended_can_id, flt.extended_mask});
};
Expand Down

0 comments on commit e53b27a

Please sign in to comment.