mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
Instance API cleanup.
This commit is contained in:
@@ -2907,7 +2907,7 @@ otLinkSetAssignLinkQuality(
|
||||
OTAPI
|
||||
void
|
||||
OTCALL
|
||||
otPlatformReset(
|
||||
otInstanceReset(
|
||||
_In_ otInstance *aInstance
|
||||
)
|
||||
{
|
||||
@@ -2917,7 +2917,7 @@ otPlatformReset(
|
||||
OTAPI
|
||||
void
|
||||
OTCALL
|
||||
otFactoryReset(
|
||||
otInstanceFactoryReset(
|
||||
_In_ otInstance *aInstance
|
||||
)
|
||||
{
|
||||
|
||||
@@ -4864,7 +4864,7 @@ otLwfIoCtl_otPlatformReset(
|
||||
UNREFERENCED_PARAMETER(OutBuffer);
|
||||
*OutBufferLength = 0;
|
||||
|
||||
otPlatformReset(pFilter->otCtx);
|
||||
otInstanceReset(pFilter->otCtx);
|
||||
|
||||
return status;
|
||||
}
|
||||
@@ -4888,7 +4888,7 @@ otLwfIoCtl_otFactoryReset(
|
||||
UNREFERENCED_PARAMETER(OutBuffer);
|
||||
*OutBufferLength = 0;
|
||||
|
||||
otFactoryReset(pFilter->otCtx);
|
||||
otInstanceFactoryReset(pFilter->otCtx);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -844,7 +844,7 @@ OTNODEAPI otNode* OTCALL otNodeInit(uint32_t id)
|
||||
InitializeCriticalSection(&node->mCS);
|
||||
|
||||
// Reset any previously saved settings
|
||||
otFactoryReset(instance);
|
||||
otInstanceFactoryReset(instance);
|
||||
|
||||
otSetStateChangedCallback(instance, otNodeStateChangedCallback, node);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user