Skip to content

Commit

Permalink
Rename IsServerMask to IsServer
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jun 10, 2024
1 parent 82a6824 commit 10c48ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/codegen-interaction-model/CodegenDataModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ InteractionModel::ClusterEntry FirstServerClusterEntry(EndpointId endpointId, co
for (unsigned cluster_idx = start_index; cluster_idx < endpoint->clusterCount; cluster_idx++)
{
const EmberAfCluster & cluster = endpoint->cluster[cluster_idx];
if (!cluster.IsServerMask())
if (!cluster.IsServer())
{
continue;
}
Expand Down Expand Up @@ -330,7 +330,7 @@ std::optional<unsigned> CodegenDataModel::TryFindServerClusterIndex(const EmberA
if (mClusterIterationHint < clusterCount)
{
const EmberAfCluster & cluster = endpoint->cluster[mClusterIterationHint];
if (cluster.IsServerMask() && (cluster.clusterId == id))
if (cluster.IsServer() && (cluster.clusterId == id))
{
return std::make_optional(mClusterIterationHint);
}
Expand All @@ -342,7 +342,7 @@ std::optional<unsigned> CodegenDataModel::TryFindServerClusterIndex(const EmberA
for (unsigned cluster_idx = 0; cluster_idx < clusterCount; cluster_idx++)
{
const EmberAfCluster & cluster = endpoint->cluster[cluster_idx];
if (cluster.IsServerMask() && (cluster.clusterId == id))
if (cluster.IsServer() && (cluster.clusterId == id))
{
return std::make_optional(cluster_idx);
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/util/af-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct EmberAfCluster
*/
uint16_t eventCount;

bool IsServerMask() const { return (mask & CLUSTER_MASK_SERVER) != 0; }
bool IsServer() const { return (mask & CLUSTER_MASK_SERVER) != 0; }
};

/**
Expand Down

0 comments on commit 10c48ca

Please sign in to comment.