Skip to content

Commit 8a0b175

Browse files
committed
add osal_task_delay() for control blocking
1 parent d34508a commit 8a0b175

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/host/usbh.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ bool tuh_control_xfer (tuh_xfer_t* xfer)
568568
// only need to call task if not preempted RTOS
569569
#if CFG_TUSB_OS == OPT_OS_NONE || CFG_TUSB_OS == OPT_OS_PICO
570570
tuh_task();
571+
#else
572+
osal_task_delay(1); // TODO maybe yield()
571573
#endif
572574

573575
// TODO probably some timeout to prevent hanged

0 commit comments

Comments
 (0)