Skip to content

Commit

Permalink
Remove revert at restart of openthread after other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed Jun 28, 2022
1 parent 5034a72 commit 5994347
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ CHIP_ERROR GenericThreadDriver::Init(Internal::BaseDriver::NetworkStatusChangeCa
VerifyOrReturnError(ThreadStackMgrImpl().IsThreadAttached(), CHIP_NO_ERROR);
VerifyOrReturnError(ThreadStackMgrImpl().GetThreadProvision(mStagingNetwork) == CHIP_NO_ERROR, CHIP_NO_ERROR);

// Try to revert configuration at init, in case we rebooted during fail-safe. If there
// was no backup, this is a no-op. Note that it's better for drivers not to touch
// persistent configuration until CommitConfiguration(), but some network stacks
// like OpenThread do internal storage on connect/attach, so this is why the stateful
// approach here is needed.
RevertConfiguration();

return CHIP_NO_ERROR;
}

Expand Down

0 comments on commit 5994347

Please sign in to comment.