components/esp_matter: fix compile error for icd without esp data model

This commit is contained in:
Chen Dejin
2025-12-19 09:50:15 +08:00
committed by Shu Chen
parent f64a2e18f1
commit 9941603436
2 changed files with 1 additions and 5 deletions
@@ -110,14 +110,12 @@ static esp_err_t set_active_threshold(uint32_t active_threshold_ms)
return chip::Test::ICDConfigurationDataTestAccess::SetActiveThreshold(Milliseconds32(active_threshold_ms));
}
#ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
static bool s_enable_icd_server = true;
static bool s_enable_icd_server = CHIP_CONFIG_ENABLE_ICD_SERVER;
bool get_icd_server_enabled()
{
return s_enable_icd_server;
}
#endif // CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
esp_err_t set_configuration_data(config_t *config)
{
@@ -29,11 +29,9 @@ typedef struct config {
std::optional<uint32_t> active_threshold_ms;
} config_t;
#ifdef CONFIG_ESP_MATTER_ENABLE_DATA_MODEL
/** Get whether ICD server is enabled for Matter end-device
*/
bool get_icd_server_enabled();
#endif
/** Set ICD configuration data
*