Skip to content

Commit 1415398

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Pass the right constant to ArmFailSafe. (#22999)
It takes a fabric index, not a fabric id. This happened to work because both kUndefinedFabricIndex and kUndefinedFabricId have the numeric value 0.
1 parent 8692877 commit 1415398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/server/CommissioningWindowManager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void CommissioningWindowManager::OnSessionEstablished(const SessionHandle & sess
175175
}
176176
else
177177
{
178-
err = failSafeContext.ArmFailSafe(kUndefinedFabricId, System::Clock::Seconds16(60));
178+
err = failSafeContext.ArmFailSafe(kUndefinedFabricIndex, System::Clock::Seconds16(60));
179179
if (err != CHIP_NO_ERROR)
180180
{
181181
ChipLogError(AppServer, "Error arming failsafe on PASE session establishment completion");

0 commit comments

Comments
 (0)