Skip to content

Commit

Permalink
components/esp-matter: fix cluster-id when creating activated carbon
Browse files Browse the repository at this point in the history
filter monitoring cluster.
  • Loading branch information
shubhamdp committed Dec 30, 2024
1 parent 057ae41 commit f4df4be
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/esp_matter/esp_matter_cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1390,8 +1390,8 @@ const int function_flags = CLUSTER_FLAG_NONE;

cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
{
cluster_t *cluster = cluster::create(endpoint, HepaFilterMonitoring::Id, flags);
VerifyOrReturnValue(cluster, NULL, ESP_LOGE(TAG, "Could not create cluster. cluster_id: 0x%08" PRIX32, HepaFilterMonitoring::Id));
cluster_t *cluster = cluster::create(endpoint, ActivatedCarbonFilterMonitoring::Id, flags);
VerifyOrReturnValue(cluster, NULL, ESP_LOGE(TAG, "Could not create cluster. cluster_id: 0x%08" PRIX32, ActivatedCarbonFilterMonitoring::Id));

if (flags & CLUSTER_FLAG_SERVER) {
if (config -> delegate != nullptr) {
Expand Down Expand Up @@ -2029,21 +2029,21 @@ const function_generic_t function_list[] = {
const int function_flags = CLUSTER_FLAG_INIT_FUNCTION;

static bool check_feature_map(uint32_t features) {
if((features & feature::other::get_id()) == feature::other::get_id())
if((features & feature::other::get_id()) == feature::other::get_id())
return true;
if((features & feature::passive_infrared::get_id()) == feature::passive_infrared::get_id())
if((features & feature::passive_infrared::get_id()) == feature::passive_infrared::get_id())
return true;
if((features & feature::ultrasonic::get_id()) == feature::ultrasonic::get_id())
if((features & feature::ultrasonic::get_id()) == feature::ultrasonic::get_id())
return true;
if((features & feature::physical_contact::get_id()) == feature::physical_contact::get_id())
if((features & feature::physical_contact::get_id()) == feature::physical_contact::get_id())
return true;
if((features & feature::active_infrared::get_id()) == feature::active_infrared::get_id())
if((features & feature::active_infrared::get_id()) == feature::active_infrared::get_id())
return true;
if((features & feature::radar::get_id()) == feature::radar::get_id())
if((features & feature::radar::get_id()) == feature::radar::get_id())
return true;
if((features & feature::rf_sensing::get_id()) == feature::rf_sensing::get_id())
if((features & feature::rf_sensing::get_id()) == feature::rf_sensing::get_id())
return true;
if((features & feature::vision::get_id()) == feature::vision::get_id())
if((features & feature::vision::get_id()) == feature::vision::get_id())
return true;
return false;
}
Expand Down

0 comments on commit f4df4be

Please sign in to comment.