From 21001baabb31392e3f655655554dfbf0ea3f657a Mon Sep 17 00:00:00 2001 From: liyashuai Date: Mon, 22 Jul 2024 19:55:27 +0800 Subject: [PATCH] change identify time attribute range to 0~65535 --- components/esp_matter/esp_matter_cluster.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/esp_matter/esp_matter_cluster.cpp b/components/esp_matter/esp_matter_cluster.cpp index ae647fead..bff18c2f8 100644 --- a/components/esp_matter/esp_matter_cluster.cpp +++ b/components/esp_matter/esp_matter_cluster.cpp @@ -1194,7 +1194,7 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags) /* Attributes not managed internally */ if (config) { global::attribute::create_cluster_revision(cluster, config->cluster_revision); - attribute::create_identify_time(cluster, config->identify_time, 0x0, 0xFE); + attribute::create_identify_time(cluster, config->identify_time, 0x0, 0xFFFE); attribute::create_identify_type(cluster, config->identify_type); } else { ESP_LOGE(TAG, "Config is NULL. Cannot add some attributes."); @@ -2901,7 +2901,7 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags, uint32_ } } - + /* Features */ if (features & feature::visual::get_id()) { feature::visual::add(cluster, &(config->visual)); @@ -3744,7 +3744,7 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags, uint32_ feature::dynamic_power_flow::add(cluster); } } - + return cluster; } } /* power_topology */ @@ -4101,7 +4101,7 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags, uint32_ (features & feature::forecast_adjustment::get_id()) || (features & feature::constraint_based_adjustment::get_id())) && !(features & feature::power_forecast_reporting::get_id())) { - + feature::state_forecast_reporting::add(cluster); } }