Skip to content

Commit bd5ab1f

Browse files
authored
Update comments for RevertConfiguration
1 parent 4bda663 commit bd5ab1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ CHIP_ERROR GenericThreadDriver::RevertConfiguration()
9999

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

0 commit comments

Comments
 (0)