Skip to content

Commit

Permalink
Failsafe fixes from other PR
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Apr 3, 2022
1 parent e94f186 commit eca44cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/platform/FailSafeContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,11 @@ CHIP_ERROR FailSafeContext::DeleteFromStorage()

void FailSafeContext::ForceFailSafeTimerExpiry()
{
if (!IsFailSafeArmed())
{
return;
}
FailSafeTimerExpired();
DisarmFailSafe();
}

} // namespace DeviceLayer
Expand Down

0 comments on commit eca44cb

Please sign in to comment.