mirror of
https://github.com/espressif/openthread.git
synced 2026-08-23 10:49:51 +00:00
[ncp] fix the PHY_ENABLED getter when RAW_LINK_API is disabled (#2115)
This commit is contained in:
committed by
Jonathan Hui
parent
4decdad93d
commit
8212c31ae1
@@ -1543,7 +1543,11 @@ otError NcpBase::GetPropertyHandler_PHY_ENABLED(uint8_t aHeader, spinel_prop_key
|
||||
SPINEL_CMD_PROP_VALUE_IS,
|
||||
aKey,
|
||||
SPINEL_DATATYPE_BOOL_S,
|
||||
#if OPENTHREAD_ENABLE_RAW_LINK_API
|
||||
otLinkRawIsEnabled(mInstance)
|
||||
#else
|
||||
false
|
||||
#endif // OPENTHREAD_ENABLE_RAW_LINK_API
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user