fix freeRTOS logic
This commit is contained in:
parent
a0fe3a80e7
commit
8b66098335
|
@ -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)
|
static inline bool osal_queue_empty(osal_queue_t qhdl)
|
||||||
{
|
{
|
||||||
return uxQueueMessagesWaiting(qhdl) > 0;
|
return uxQueueMessagesWaiting(qhdl) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue