Skip to content

Commit

Permalink
Move define to icd config (#30862)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored and pull[bot] committed Feb 5, 2024
1 parent 4fbb73a commit 3567814
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/app/icd/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ buildconfig_header("icd_buildconfig") {
"CHIP_CONFIG_ENABLE_ICD_SERVER=${chip_enable_icd_server}",
"ICD_REPORT_ON_ENTER_ACTIVE_MODE=${chip_report_on_active_mode}",
"ICD_MAX_NOTIFICATION_SUBSCRIBERS=${icd_max_notification_subscribers}",
"ICD_ENFORCE_SIT_SLOW_POLL_LIMIT=${icd_enforce_sit_slow_poll_limit}",
]

visibility = [ ":icd_config" ]
Expand Down Expand Up @@ -108,5 +109,8 @@ source_set("configuration-data") {
"ICDConfigurationData.h",
]

deps = [ "${chip_root}/src/lib/core" ]
deps = [
":icd_config",
"${chip_root}/src/lib/core",
]
}
1 change: 1 addition & 0 deletions src/app/icd/ICDConfigurationData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

#include "ICDConfigurationData.h"
#include <app/icd/ICDConfig.h>

namespace chip {

Expand Down
5 changes: 0 additions & 5 deletions src/app/icd/ICDConfigurationData.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
#include <platform/CHIPDeviceConfig.h>
#include <system/SystemClock.h>

#ifndef ICD_ENFORCE_SIT_SLOW_POLL_LIMIT
// Set to 1 to enforce SIT Slow Polling Max value to 15seconds (spec 9.16.1.5)
#define ICD_ENFORCE_SIT_SLOW_POLL_LIMIT 0
#endif

namespace chip {

namespace app {
Expand Down
4 changes: 4 additions & 0 deletions src/app/icd/icd.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ declare_args() {

# Matter SDK Configuration flag to make the ICD manager emit a report on entering active mode
chip_report_on_active_mode = false

icd_max_notification_subscribers = 1

# Set to true to enforce SIT Slow Polling Max value to 15seconds (spec 9.16.1.5)
icd_enforce_sit_slow_poll_limit = false
}

0 comments on commit 3567814

Please sign in to comment.