Skip to content

Commit

Permalink
Don't reset AddNoc and UpdateNoc in CommissioningFailedTimerComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Mar 17, 2022
1 parent 267c0e4 commit 7e182c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/include/platform/FailSafeContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ class FailSafeContext

inline FabricIndex GetFabricIndex()
{
VerifyOrDie(mFailSafeArmed);
return mFabricIndex;
}

Expand Down
4 changes: 1 addition & 3 deletions src/platform/FailSafeContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ void FailSafeContext::CommissioningFailedTimerComplete()
event.CommissioningComplete.Status = CHIP_ERROR_TIMEOUT;
CHIP_ERROR status = PlatformMgr().PostEvent(&event);

mFailSafeArmed = false;
mAddNocCommandHasBeenInvoked = false;
mUpdateNocCommandHasBeenInvoked = false;
mFailSafeArmed = false;

if (status != CHIP_NO_ERROR)
{
Expand Down

0 comments on commit 7e182c9

Please sign in to comment.