From 38bff47d1a6a77e65845f8d50998bc8f8a8675dd Mon Sep 17 00:00:00 2001 From: Andrii Bilynskyi Date: Mon, 18 Sep 2023 16:29:54 +0300 Subject: [PATCH] [Telink] Power down mode using ICD (#29287) --- config/telink/chip-module/CMakeLists.txt | 1 + examples/platform/telink/common/src/mainCommon.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/telink/chip-module/CMakeLists.txt b/config/telink/chip-module/CMakeLists.txt index bfb38cb5172c69..1ebe7bb91ce844 100644 --- a/config/telink/chip-module/CMakeLists.txt +++ b/config/telink/chip-module/CMakeLists.txt @@ -97,6 +97,7 @@ matter_add_gn_arg_bool ("chip_error_logging" CONFIG_MATTER_ matter_add_gn_arg_bool ("chip_progress_logging" CONFIG_MATTER_LOG_LEVEL GREATER_EQUAL 3) matter_add_gn_arg_bool ("chip_detail_logging" CONFIG_MATTER_LOG_LEVEL GREATER_EQUAL 4) matter_add_gn_arg_bool ("chip_automation_logging" FALSE) +matter_add_gn_arg_bool ("chip_enable_icd_server" CONFIG_CHIP_ENABLE_ICD_SUPPORT) if (CONFIG_CHIP_FACTORY_DATA) matter_add_gn_arg_bool ("chip_use_transitional_commissionable_data_provider" "false") diff --git a/examples/platform/telink/common/src/mainCommon.cpp b/examples/platform/telink/common/src/mainCommon.cpp index d88a6a981dd985..5adc0804872c72 100644 --- a/examples/platform/telink/common/src/mainCommon.cpp +++ b/examples/platform/telink/common/src/mainCommon.cpp @@ -142,7 +142,7 @@ int main(void) goto exit; } -#ifdef CONFIG_OPENTHREAD_MTD_SED +#ifdef CONFIG_CHIP_ENABLE_ICD_SUPPORT err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_SleepyEndDevice); #elif CONFIG_OPENTHREAD_MTD err = ConnectivityMgr().SetThreadDeviceType(ConnectivityManager::kThreadDeviceType_MinimalEndDevice);