Skip to content

Commit

Permalink
fix local bind at initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 committed Dec 17, 2024
1 parent 80e107e commit 1ae70d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/clusters/bindings/BindingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ BindingManager BindingManager::sBindingManager;

CHIP_ERROR BindingManager::UnicastBindingCreated(uint8_t fabricIndex, NodeId nodeId)
{
return EstablishConnection(ScopedNodeId(nodeId, fabricIndex));
if (!IsSelfNodeId(ScopedNodeId(nodeId, fabricIndex))) {
return EstablishConnection(ScopedNodeId(nodeId, fabricIndex));
}
return CHIP_NO_ERROR;
}

CHIP_ERROR BindingManager::UnicastBindingRemoved(uint8_t bindingEntryId)
Expand Down

0 comments on commit 1ae70d2

Please sign in to comment.