Skip to content

Commit 45ceda8

Browse files
committed
data_model_provider: Fix emberAfContainsClient() in ember stubs of esp_matter data model
Fix CON-1830
1 parent c894d6d commit 45ceda8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_matter/data_model_provider/esp_matter_ember_stubs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ bool emberAfContainsAttribute(chip::EndpointId endpoint, chip::ClusterId cluster
12651265
bool emberAfContainsClient(chip::EndpointId endpoint, chip::ClusterId clusterId)
12661266
{
12671267
esp_matter::cluster_t *cluster = esp_matter::cluster::get(endpoint, clusterId);
1268-
if (cluster && (esp_matter::cluster::get_flags(cluster) & esp_matter::CLUSTER_FLAG_SERVER)) {
1268+
if (cluster && (esp_matter::cluster::get_flags(cluster) & esp_matter::CLUSTER_FLAG_CLIENT)) {
12691269
return true;
12701270
}
12711271
return false;

0 commit comments

Comments
 (0)