mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
[ncp] differentiate DETACHED role and DISABLED role (#9760)
This commit is contained in:
@@ -536,6 +536,9 @@ template <> otError NcpBase::HandlePropertyGet<SPINEL_PROP_NET_ROLE>(void)
|
||||
switch (otThreadGetDeviceRole(mInstance))
|
||||
{
|
||||
case OT_DEVICE_ROLE_DISABLED:
|
||||
role = SPINEL_NET_ROLE_DISABLED;
|
||||
break;
|
||||
|
||||
case OT_DEVICE_ROLE_DETACHED:
|
||||
role = SPINEL_NET_ROLE_DETACHED;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user