Skip to content

Commit c80cb56

Browse files
authored
Merge pull request #9091 from bablokb/fix_no_usbhost
prevent undefined function if CIRCUITPY_USB_HOST=0
2 parents b49f2f7 + 0cfdbb1 commit c80cb56

File tree

1 file changed

+4
-0
lines changed
  • ports/raspberrypi/supervisor

1 file changed

+4
-0
lines changed

ports/raspberrypi/supervisor/port.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ void port_interrupt_after_ticks(uint32_t ticks) {
304304

305305
void port_idle_until_interrupt(void) {
306306
common_hal_mcu_disable_interrupts();
307+
#if CIRCUITPY_USB_HOST
307308
if (!background_callback_pending() && !tud_task_event_ready() && !tuh_task_event_ready() && !_woken_up) {
309+
#else
310+
if (!background_callback_pending() && !tud_task_event_ready() && !_woken_up) {
311+
#endif
308312
__DSB();
309313
__WFI();
310314
}

0 commit comments

Comments
 (0)