Skip to content

Commit

Permalink
Pull request project-chip#152: fixed to ensure that the bridge send t…
Browse files Browse the repository at this point in the history
…he correct supported command list for endpoints

Merge in WMN_TOOLS/matter from bugfix/supported_clusterList to silabs

Squashed commit of the following:

commit 362220b8834e5c409f6ed60479a2f012cf4d3d6c
Author: Dereje Wassie <Dereje.Wassie@silabs.com>
Date:   Fri Oct 7 12:39:34 2022 +0200

    fixed to ensure that the bridge send the correct supported command list for endpoints
  • Loading branch information
Dereje Wassie authored and jmartinez-silabs committed Mar 27, 2024
1 parent ad89761 commit e084590
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void cluster_interactor::build_matter_cluster(const std::unordered_map<std::stri
cluster_builder.incoming_commands.push_back(command.value());
}
}

cluster_builder.incoming_commands.push_back(chip::kInvalidCommandId);
for (const auto & outgoing : cluster.generated_commands)
{
auto command = translator.get_command_id(cluster_name, outgoing);
Expand All @@ -91,7 +91,7 @@ void cluster_interactor::build_matter_cluster(const std::unordered_map<std::stri
cluster_builder.outgoing_commands.push_back(command.value());
}
}

cluster_builder.outgoing_commands.push_back(chip::kInvalidCommandId);
for (const auto & attribute : cluster.attributes)
{
if (auto attribute_id = translator.get_attribute_id(cluster_name, attribute))
Expand Down

0 comments on commit e084590

Please sign in to comment.