Skip to content

Commit 248dd38

Browse files
committed
Fix host-only tinyusb builds
1 parent eb0be7e commit 248dd38

File tree

1 file changed

+4
-0
lines changed
  • supervisor/shared/usb

1 file changed

+4
-0
lines changed

supervisor/shared/usb/usb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ bool usb_enabled(void) {
8888
}
8989

9090
bool usb_connected(void) {
91+
#if CIRCUITPY_TINYUSB && CIRCUITPY_USB_DEVICE
9192
return tud_ready();
93+
#else
94+
return false;
95+
#endif
9296
}
9397

9498
MP_WEAK void post_usb_init(void) {

0 commit comments

Comments
 (0)