Browse Source

fix freeRTOS logic

hathach 5 years ago
parent
commit
8b66098335
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/osal/osal_freertos.h

+ 1 - 1
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