Skip to content

Commit

Permalink
[posix] update posix with platform API
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtdkp committed Jul 18, 2023
1 parent fdb05ef commit 8273ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ncp/ncp_openthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void ControllerOpenThread::Deinit(void)
{
assert(mInstance != nullptr);

otSysDeinit();
otSysDeinit(mInstance);
mInstance = nullptr;
}

Expand Down Expand Up @@ -351,7 +351,7 @@ void ControllerOpenThread::Reset(void)
{
gPlatResetReason = OT_PLAT_RESET_REASON_SOFTWARE;

otSysDeinit();
otSysDeinit(mInstance);
mInstance = nullptr;

Init();
Expand Down

0 comments on commit 8273ad1

Please sign in to comment.