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 19, 2023
1 parent dac9a94 commit 65daebc
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 @@ -293,7 +293,7 @@ void ControllerOpenThread::Deinit(void)
{
assert(mInstance != nullptr);

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

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

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

Init();
Expand Down

0 comments on commit 65daebc

Please sign in to comment.