diff options
| author | hathach <[email protected]> | 2023-03-21 18:15:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-21 18:15:45 +0700 |
| commit | 8a0b17598c14497805addbb7c670e41c9eb5c0b7 (patch) | |
| tree | 4e13fff8f76782b25be2bda9621e686fa9f06386 /src | |
| parent | d34508a316a2b97db749651452b8e1650e854f37 (diff) | |
add osal_task_delay() for control blocking
Diffstat (limited to 'src')
| -rw-r--r-- | src/host/usbh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index a3335102f..dc347c458 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -568,6 +568,8 @@ bool tuh_control_xfer (tuh_xfer_t* xfer) // only need to call task if not preempted RTOS #if CFG_TUSB_OS == OPT_OS_NONE || CFG_TUSB_OS == OPT_OS_PICO tuh_task(); + #else + osal_task_delay(1); // TODO maybe yield() #endif // TODO probably some timeout to prevent hanged |
