diff options
| author | hathach <[email protected]> | 2024-04-16 10:40:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-04-16 10:40:24 +0700 |
| commit | 189080b684b298e0b3e7df6528f24a43c646ab8c (patch) | |
| tree | b61b18ab301e292561aa401b3e088f7880c048d8 /src/host | |
| parent | 50738f2ab4cbb3d1c00db994279dec620b2870f0 (diff) | |
add TU_ASSERT() to check for adding new usb event
Diffstat (limited to 'src/host')
| -rw-r--r-- | src/host/usbh.c | 4 |
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; } //--------------------------------------------------------------------+ |
