mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 16:39:52 +00:00
Windows: Reset new test Nodes (#1364)
* Reset new test Nodes * Finalize before reinitializing * Minor issues with reinitialization * Fix settings wipe
This commit is contained in:
@@ -843,6 +843,9 @@ OTNODEAPI otNode* OTCALL otNodeInit(uint32_t id)
|
||||
|
||||
InitializeCriticalSection(&node->mCS);
|
||||
|
||||
// Reset any previously saved settings
|
||||
otFactoryReset(instance);
|
||||
|
||||
otSetStateChangedCallback(instance, otNodeStateChangedCallback, node);
|
||||
|
||||
HandleAddressChanges(node);
|
||||
|
||||
Reference in New Issue
Block a user