From 789e304320de8cefea149ca711a8d5e1b9207dd4 Mon Sep 17 00:00:00 2001 From: Jean-Francois Penven Date: Thu, 9 Nov 2023 12:22:43 -0500 Subject: [PATCH] Remove Circular dependency between App Layer and Messaging Layer --- src/messaging/ReliableMessageProtocolConfig.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/messaging/ReliableMessageProtocolConfig.cpp b/src/messaging/ReliableMessageProtocolConfig.cpp index 652531c8ee8567..f04af58db6190f 100644 --- a/src/messaging/ReliableMessageProtocolConfig.cpp +++ b/src/messaging/ReliableMessageProtocolConfig.cpp @@ -27,11 +27,6 @@ #include #include -#if CHIP_CONFIG_ENABLE_ICD_SERVER -#include // nogncheck -#include // nogncheck -#endif - namespace chip { using namespace System::Clock::Literals; @@ -73,9 +68,9 @@ Optional GetLocalMRPConfig() // TODO ICD LIT shall not advertise the SII key // Increase local MRP retry intervals by ICD polling intervals. That is, intervals for // which the device can be at sleep and not be able to receive any messages). - config.mIdleRetransTimeout += app::ICDManager::GetSlowPollingInterval(); - config.mActiveRetransTimeout += app::ICDManager::GetFastPollingInterval(); - config.mActiveThresholdTime = System::Clock::Milliseconds16(ICDManagementServer::GetInstance().GetActiveModeThresholdMs()); + config.mIdleRetransTimeout += CHIP_DEVICE_CONFIG_ICD_SLOW_POLL_INTERVAL; + config.mActiveRetransTimeout += CHIP_DEVICE_CONFIG_ICD_FAST_POLL_INTERVAL; + config.mActiveThresholdTime = System::Clock::Milliseconds16(CHIP_CONFIG_ICD_ACTIVE_MODE_THRESHOLD_MS); #endif #if CONFIG_BUILD_FOR_HOST_UNIT_TEST