summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-04-20 13:25:38 +0700
committerhathach <[email protected]>2022-04-20 13:25:38 +0700
commita90839688c11338451729838e45ae3aaa58864fe (patch)
treeac572a052f4bd242d39b89376d11255f69de5dc4 /src/host
parent9c8c5c1c53214b8954bb28c33a496b5b423d5ecc (diff)
add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c
index f534070de..ad90a1b1b 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -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)
{