summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeterB <[email protected]>2022-12-01 16:06:15 +0000
committerPeterB <[email protected]>2022-12-01 16:06:15 +0000
commitae588d796e1b035c7efd582a4e4f3fc28b3a5ac0 (patch)
treebe47610f4c36eb7309013ce4b4b86714de368c9b
parent25abb10de17ed868b2189ae5038a7c47aab19ae5 (diff)
Alter tuh_task_ext() function so no need to return when using FreeRTOS
-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 d97b160c9..a90b54924 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -509,7 +509,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr)
default: break;
}
-#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO
+#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO && CFG_TUSB_OS != OPT_OS_FREERTOS
// return if there is no more events, for application to run other background
if (osal_queue_empty(_usbh_q)) return;
#endif