add TU_ASSERT() to check for adding new usb event
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user