summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-05-20 15:21:11 +0700
committerhathach <[email protected]>2020-05-20 15:21:11 +0700
commit8b66098335cb93504c7680fadad502b59ff73b48 (patch)
treefa3ca421e1e0fc0fbbb8aeeceaf5b81c1f83cc1c
parenta0fe3a80e74fceee6c97fcf734822280d1cfd62e (diff)
fix freeRTOS logic
-rw-r--r--src/osal/osal_freertos.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osal/osal_freertos.h b/src/osal/osal_freertos.h
index d2d5f51c9..42ea1fd19 100644
--- a/src/osal/osal_freertos.h
+++ b/src/osal/osal_freertos.h
@@ -130,7 +130,7 @@ static inline bool osal_queue_send(osal_queue_t qhdl, void const * data, bool in
static inline bool osal_queue_empty(osal_queue_t qhdl)
{
- return uxQueueMessagesWaiting(qhdl) > 0;
+ return uxQueueMessagesWaiting(qhdl) == 0;
}
#ifdef __cplusplus