[ncp] fix the PHY_ENABLED getter when RAW_LINK_API is disabled (#2115)

This commit is contained in:
Abtin Keshavarzian
2017-08-17 14:40:48 -07:00
committed by Jonathan Hui
parent 4decdad93d
commit 8212c31ae1
+4
View File
@@ -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
);
}