Skip to content

Commit

Permalink
Update comments for RevertConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen authored Jun 24, 2024
1 parent 4bda663 commit bd5ab1f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ CHIP_ERROR GenericThreadDriver::RevertConfiguration()

if (!GetEnabled())
{
// If backup is found, set InterfaceEnabled to default value (true).
// When reverting configuration, set InterfaceEnabled to default value (true).
// From the spec:
// If InterfaceEnabled is written to false on the same interface as that which is used to write the value, the Administrator
// could await the recovery of network configuration to prior safe values, before being able to communicate with the
// node again.
ReturnErrorOnFailure(PersistedStorage::KeyValueStoreMgr().Delete(kInterfaceEnabled));
}

Expand Down

0 comments on commit bd5ab1f

Please sign in to comment.