Skip to content

Commit

Permalink
Pass the right constant to ArmFailSafe. (#22999)
Browse files Browse the repository at this point in the history
It takes a fabric index, not a fabric id.  This happened to work because both
kUndefinedFabricIndex and kUndefinedFabricId have the numeric value 0.
  • Loading branch information
bzbarsky-apple authored Oct 3, 2022
1 parent be8567b commit 39fcdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/server/CommissioningWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void CommissioningWindowManager::OnSessionEstablished(const SessionHandle & sess
}
else
{
err = failSafeContext.ArmFailSafe(kUndefinedFabricId, System::Clock::Seconds16(60));
err = failSafeContext.ArmFailSafe(kUndefinedFabricIndex, System::Clock::Seconds16(60));
if (err != CHIP_NO_ERROR)
{
ChipLogError(AppServer, "Error arming failsafe on PASE session establishment completion");
Expand Down

0 comments on commit 39fcdca

Please sign in to comment.