Merge branch 'fix/compile_icd_without_data_model_1_5' into 'release/v1.5'

components/esp_matter: fix compile error for icd without esp data model (v1.5)

See merge request app-frameworks/esp-matter!1361
This commit is contained in:
Shu Chen
2026-01-07 08:05:00 +00:00
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
*