mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Merge branch 'fix_group_certify_issue_1_4' into 'release/v1.4'
[1.4]components/esp_matter: Fix certify issue with no groups cluster See merge request app-frameworks/esp-matter!1225
This commit is contained in:
@@ -742,8 +742,9 @@ static void esp_matter_chip_init_task(intptr_t context)
|
|||||||
|
|
||||||
#ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
|
#ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
|
||||||
// Group data provider injection for dynamic data model
|
// Group data provider injection for dynamic data model
|
||||||
{
|
uint8_t groups_server_cluster_count = node::get_server_cluster_endpoint_count(chip::app::Clusters::Groups::Id);
|
||||||
uint8_t groups_server_cluster_count = node::get_server_cluster_endpoint_count(chip::app::Clusters::Groups::Id);
|
// If groups_server_cluster_count equals to 0, do nothing
|
||||||
|
if (groups_server_cluster_count > 0) {
|
||||||
uint16_t max_groups_per_fabric = groups_server_cluster_count * MAX_GROUPS_PER_FABRIC_PER_ENDPOINT;
|
uint16_t max_groups_per_fabric = groups_server_cluster_count * MAX_GROUPS_PER_FABRIC_PER_ENDPOINT;
|
||||||
|
|
||||||
// since groupDataProvider is a static variable, it won't be released.
|
// since groupDataProvider is a static variable, it won't be released.
|
||||||
|
|||||||
Reference in New Issue
Block a user