Merge pull request #1662 from Erlkoenig90/check-usbd-queue-overflow

Check for event queue overflow in usbd / dcd_event_handler
This commit is contained in:
Ha Thach
2024-04-16 10:58:15 +07:00
committed by GitHub
4 changed files with 4 additions and 6 deletions

View File

@@ -296,9 +296,9 @@ tu_static osal_queue_t _usbd_q;
#endif
TU_ATTR_ALWAYS_INLINE static inline bool queue_event(dcd_event_t const * event, bool in_isr) {
bool ret = osal_queue_send(_usbd_q, event, in_isr);
TU_ASSERT(osal_queue_send(_usbd_q, event, in_isr));
tud_event_hook_cb(event->rhport, event->event_id, in_isr);
return ret;
return true;
}
//--------------------------------------------------------------------+