From f9b4844735f4ce43e12156583be4726d4aedf403 Mon Sep 17 00:00:00 2001 From: WanqQixiang Date: Fri, 23 Feb 2024 17:09:48 +0800 Subject: [PATCH] Add check for CHIP_CONFIG_ENABLE_ICD_CIP when adding CIP feature for ICD management cluster --- components/esp_matter/esp_matter_cluster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_matter/esp_matter_cluster.cpp b/components/esp_matter/esp_matter_cluster.cpp index 6cb9323fa..c2e4f51c5 100644 --- a/components/esp_matter/esp_matter_cluster.cpp +++ b/components/esp_matter/esp_matter_cluster.cpp @@ -998,10 +998,12 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags, uint32_ } } +#if CHIP_CONFIG_ENABLE_ICD_CIP if (features & feature::check_in_protocol_support::get_id()) { feature::check_in_protocol_support::config_t cip_config; feature::check_in_protocol_support::add(cluster, &cip_config); } +#endif // CHIP_CONFIG_ENABLE_ICD_CIP #endif // CONFIG_ENABLE_ICD_SERVER return cluster; }