summaryrefslogtreecommitdiff
path: root/src/osal
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-02-27 22:39:42 +0700
committerhathach <[email protected]>2026-02-27 22:39:42 +0700
commit66c4d470eb70b781f0ebdd995aadf44633ce95a4 (patch)
tree15540087f3898d00e98fadb535d99aae74efbd86 /src/osal
parentfd933642df6a687d4452275d277e9479870f806c (diff)
add back deferred attachment queue, retry get hub port status if reset change not set after 20ms
Diffstat (limited to 'src/osal')
-rw-r--r--src/osal/osal_none.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h
index 6ab18ace8..bba42716d 100644
--- a/src/osal/osal_none.h
+++ b/src/osal/osal_none.h
@@ -184,7 +184,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_receive(osal_queue_t qhdl, v
(void) msec; // not used, always behave as msec = 0
qhdl->interrupt_set(false);
- const bool success = tu_fifo_read_n(&qhdl->ff, data, qhdl->item_size);
+ const bool success = (tu_fifo_read_n(&qhdl->ff, data, qhdl->item_size) > 0);
qhdl->interrupt_set(true);
return success;
@@ -195,7 +195,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void
qhdl->interrupt_set(false);
}
- const bool success = tu_fifo_write_n(&qhdl->ff, data, qhdl->item_size);
+ const bool success = (tu_fifo_write_n(&qhdl->ff, data, qhdl->item_size) > 0);
if (!in_isr) {
qhdl->interrupt_set(true);