Skip to content

Commit ae588d7

Browse files
PeterBPeterB
authored andcommitted
Alter tuh_task_ext() function so no need to return when using FreeRTOS
1 parent 25abb10 commit ae588d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/host/usbh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr)
509509
default: break;
510510
}
511511

512-
#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO
512+
#if CFG_TUSB_OS != OPT_OS_NONE && CFG_TUSB_OS != OPT_OS_PICO && CFG_TUSB_OS != OPT_OS_FREERTOS
513513
// return if there is no more events, for application to run other background
514514
if (osal_queue_empty(_usbh_q)) return;
515515
#endif

0 commit comments

Comments
 (0)