Skip to content

Commit a91e6ff

Browse files
committed
Merge branch 'fix/ember_contain_client' into 'main'
data_model_provider: Fix emberAfContainsClient() in ember stubs of esp_matter data model Closes CON-1830 See merge request app-frameworks/esp-matter!1288
2 parents c894d6d + 45ceda8 commit a91e6ff

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)