summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-04-16 10:58:15 +0700
committerGitHub <[email protected]>2024-04-16 10:58:15 +0700
commitf3781a45d807fe431f567a8e1028ed062c51ec58 (patch)
tree6483dab66f96436d38d107ea7f2c0454650179e2 /src/host
parentfcb2df8eb916fb14d53778361cdde173175d0a2d (diff)
parent189080b684b298e0b3e7df6528f24a43c646ab8c (diff)
Merge pull request #1662 from Erlkoenig90/check-usbd-queue-overflow
Check for event queue overflow in usbd / dcd_event_handler
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index 6a5491998..f8fddf394 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -288,9 +288,9 @@ TU_ATTR_WEAK void osal_task_delay(uint32_t msec) {
#endif
TU_ATTR_ALWAYS_INLINE static inline bool queue_event(hcd_event_t const * event, bool in_isr) {
- bool ret = osal_queue_send(_usbh_q, event, in_isr);
+ TU_ASSERT(osal_queue_send(_usbh_q, event, in_isr));
tuh_event_hook_cb(event->rhport, event->event_id, in_isr);
- return ret;
+ return true;
}
//--------------------------------------------------------------------+