mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
change identify time attribute range to 0~65535
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user