mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-01 01:20:14 +00:00
add while loop to usbd task to run until task queue is empty
This commit is contained in:
parent
bb2a8fcebf
commit
c8b72e397e
@ -265,6 +265,9 @@ static tusb_error_t usbd_main_st(void)
|
|||||||
|
|
||||||
OSAL_SUBTASK_BEGIN
|
OSAL_SUBTASK_BEGIN
|
||||||
|
|
||||||
|
// Loop until there is no more events in the queue
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
tusb_error_t err;
|
tusb_error_t err;
|
||||||
err = TUSB_ERROR_NONE;
|
err = TUSB_ERROR_NONE;
|
||||||
|
|
||||||
@ -305,6 +308,7 @@ static tusb_error_t usbd_main_st(void)
|
|||||||
{
|
{
|
||||||
STASK_ASSERT(false);
|
STASK_ASSERT(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
OSAL_SUBTASK_END
|
OSAL_SUBTASK_END
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user