mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
Cleanup device role names. (#1820)
This commit is contained in:
@@ -211,7 +211,7 @@ otError otInstanceErasePersistentInfo(otInstance *aInstance)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
VerifyOrExit(otThreadGetDeviceRole(aInstance) == kDeviceRoleDisabled, error = OT_ERROR_INVALID_STATE);
|
||||
VerifyOrExit(otThreadGetDeviceRole(aInstance) == OT_DEVICE_ROLE_DISABLED, error = OT_ERROR_INVALID_STATE);
|
||||
otPlatSettingsWipe(aInstance);
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user