add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms
This commit is contained in:
@@ -401,7 +401,7 @@ void tuh_task(void)
|
||||
while (1)
|
||||
{
|
||||
hcd_event_t event;
|
||||
if ( !osal_queue_receive(_usbh_q, &event) ) return;
|
||||
if ( !osal_queue_receive(_usbh_q, &event, 1) ) return;
|
||||
|
||||
switch (event.event_id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user