Skip to content

Commit 91317d1

Browse files
committed
Enable Check-In timer when CHIP_CONFIG_ENABLE_ICD_CIP enabled
1 parent a7074e8 commit 91317d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/chef/linux/main.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ using namespace chip::Shell;
2929
using namespace chip::app;
3030
using namespace chip::app::Clusters;
3131

32+
#if CHIP_CONFIG_ENABLE_ICD_CIP
3233
void notifyIcdActive(System::Layer * layer, void *)
3334
{
3435
ICDNotifier::GetInstance().NotifyNetworkActivityNotification();
3536
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(10000), notifyIcdActive, nullptr);
3637
}
38+
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
3739

3840
int main(int argc, char * argv[])
3941
{
@@ -55,7 +57,9 @@ int main(int argc, char * argv[])
5557
cmd_app_server_init();
5658
#endif
5759

60+
#if CHIP_CONFIG_ENABLE_ICD_CIP
5861
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(10000), notifyIcdActive, nullptr);
62+
#endif // CHIP_CONFIG_ENABLE_ICD_CIP
5963

6064
ChipLinuxAppMainLoop();
6165

0 commit comments

Comments
 (0)