Skip to content

Commit 7ad2fc9

Browse files
use CHIP_DEVICE_CONFIG_FAILSAFE_EXPIRY_LENGTH_SEC define to arme the failsafe (project-chip#35137)
1 parent 58896ab commit 7ad2fc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/server/CommissioningWindowManager.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ void CommissioningWindowManager::OnSessionEstablished(const SessionHandle & sess
221221
}
222222
else
223223
{
224-
err = failSafeContext.ArmFailSafe(kUndefinedFabricIndex, System::Clock::Seconds16(60));
224+
err = failSafeContext.ArmFailSafe(kUndefinedFabricIndex,
225+
System::Clock::Seconds16(CHIP_DEVICE_CONFIG_FAILSAFE_EXPIRY_LENGTH_SEC));
225226
if (err != CHIP_NO_ERROR)
226227
{
227228
ChipLogError(AppServer, "Error arming failsafe on PASE session establishment completion");

0 commit comments

Comments
 (0)