We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a769dd commit 12b4ac1Copy full SHA for 12b4ac1
supervisor/shared/usb/usb.c
@@ -171,9 +171,10 @@ void usb_background(void) {
171
#if CIRCUITPY_USB_HOST
172
tuh_task();
173
#endif
174
- #else
175
- // Yield to the RTOS in case TinyUSB runs in a separate task.
176
- port_yield();
+ #elif CFG_TUSB_OS == OPT_OS_FREERTOS
+ // Yield to FreeRTOS in case TinyUSB runs in a separate task. Don't use
+ // port_yield() because it has a longer delay.
177
+ vTaskDelay(0);
178
179
// No need to flush if there's no REPL.
180
#if CIRCUITPY_USB_CDC
0 commit comments