diff options
author | Uros Majstorovic <majstor@majstor.org> | 2019-12-08 17:47:58 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2019-12-08 17:47:58 +0100 |
commit | 602d0d803eb9607dcd949f3ea5ff27c14db4085b (patch) | |
tree | d48d217a9a596a757a7e5fc6b4ee46a33dc7ab04 /code/esp32/components/eos/msgq.c | |
parent | 078898fb69ec692e8a051746f423ad3171ff4d7c (diff) |
fixed uart data relay bug; fixed all xCreateTask to use new macros for stack size; fixed err type for msgq;
Diffstat (limited to 'code/esp32/components/eos/msgq.c')
-rw-r--r-- | code/esp32/components/eos/msgq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/esp32/components/eos/msgq.c b/code/esp32/components/eos/msgq.c index 6fda261..30fb0ad 100644 --- a/code/esp32/components/eos/msgq.c +++ b/code/esp32/components/eos/msgq.c @@ -13,7 +13,7 @@ void eos_msgq_init(EOSMsgQ *msgq, EOSMsgItem *array, uint8_t size) { } int eos_msgq_push(EOSMsgQ *msgq, unsigned char type, unsigned char *buffer, uint16_t len, uint8_t flags) { - if ((uint8_t)(msgq->idx_w - msgq->idx_r) == msgq->size) return EOS_ERR_Q_FULL; + if ((uint8_t)(msgq->idx_w - msgq->idx_r) == msgq->size) return EOS_ERR_FULL; uint8_t idx = EOS_MSGQ_IDX_MASK(msgq->idx_w, msgq->size); msgq->array[idx].type = type; |