mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 22:09:54 +00:00
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:
committed by
Jonathan Hui
parent
40ff2d8973
commit
243be3610f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user