Skip to content

Commit

Permalink
Slight logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Apr 19, 2024
1 parent babf9e9 commit ecf0df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/bindings/BindingManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ CHIP_ERROR BindingManager::NotifyBoundClusterChanged(EndpointId endpoint, Cluste

for (auto iter = BindingTable::GetInstance().begin(); iter != BindingTable::GetInstance().end(); ++iter)
{
if (iter->local == endpoint && (!iter->clusterId.has_value() || *(iter->clusterId) == cluster))
if (iter->local == endpoint && (iter->clusterId.value_or(cluster) == cluster))
{
if (iter->type == MATTER_UNICAST_BINDING)
{
Expand Down

0 comments on commit ecf0df9

Please sign in to comment.