mirror of
https://github.com/espressif/openthread.git
synced 2026-09-30 12:57:38 +00:00
Add support for calls to otBecomeDetached via NCP. (#856)
This commit is contained in:
@@ -3187,7 +3187,7 @@ ThreadError NcpBase::SetPropertyHandler_NET_ROLE(uint8_t header, spinel_prop_key
|
||||
switch (i)
|
||||
{
|
||||
case SPINEL_NET_ROLE_DETACHED:
|
||||
errorCode = kThreadError_InvalidArgs;
|
||||
errorCode = otBecomeDetached(mInstance);
|
||||
break;
|
||||
|
||||
case SPINEL_NET_ROLE_ROUTER:
|
||||
|
||||
Reference in New Issue
Block a user