mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
data_model_provider: Fix emberAfContainsClient() in ember stubs of esp_matter data model
Fix CON-1830
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user