From 45ceda8bea580d49683fe89acf5281b4215cc167 Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Mon, 20 Oct 2025 14:46:55 +0800 Subject: [PATCH] data_model_provider: Fix emberAfContainsClient() in ember stubs of esp_matter data model Fix CON-1830 --- .../esp_matter/data_model_provider/esp_matter_ember_stubs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_matter/data_model_provider/esp_matter_ember_stubs.cpp b/components/esp_matter/data_model_provider/esp_matter_ember_stubs.cpp index 397110ed6..920ef3361 100644 --- a/components/esp_matter/data_model_provider/esp_matter_ember_stubs.cpp +++ b/components/esp_matter/data_model_provider/esp_matter_ember_stubs.cpp @@ -1265,7 +1265,7 @@ bool emberAfContainsAttribute(chip::EndpointId endpoint, chip::ClusterId cluster bool emberAfContainsClient(chip::EndpointId endpoint, chip::ClusterId clusterId) { esp_matter::cluster_t *cluster = esp_matter::cluster::get(endpoint, clusterId); - if (cluster && (esp_matter::cluster::get_flags(cluster) & esp_matter::CLUSTER_FLAG_SERVER)) { + if (cluster && (esp_matter::cluster::get_flags(cluster) & esp_matter::CLUSTER_FLAG_CLIENT)) { return true; } return false;