posix/radio: Fix unused isFramePending() error (#1843)

This commit fixes the compile error of unused `isFramePending()`
when building posix example without enabling diags.
This commit is contained in:
Abtin Keshavarzian
2017-05-27 21:23:11 -07:00
committed by Jonathan Hui
parent 40ff2d8973
commit 243be3610f
+4
View File
@@ -123,11 +123,15 @@ static inline bool isSecurityEnabled(const uint8_t *frame)
return (frame[0] & IEEE802154_SECURITY_ENABLED) != 0;
}
#if OPENTHREAD_ENABLE_DIAG
static inline bool isFramePending(const uint8_t *frame)
{
return (frame[0] & IEEE802154_FRAME_PENDING) != 0;
}
#endif // #if OPENTHREAD_ENABLE_DIAG
static inline bool isAckRequested(const uint8_t *frame)
{
return (frame[0] & IEEE802154_ACK_REQUEST) != 0;