summaryrefslogtreecommitdiff
path: root/supervisor/shared/usb/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/shared/usb/usb.c')
-rw-r--r--supervisor/shared/usb/usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/supervisor/shared/usb/usb.c b/supervisor/shared/usb/usb.c
index aa35b95e6..614bf85e0 100644
--- a/supervisor/shared/usb/usb.c
+++ b/supervisor/shared/usb/usb.c
@@ -131,12 +131,16 @@ void usb_irq_handler(void) {
// Invoked when device is mounted
void tud_mount_cb(void) {
+#if CIRCUITPY_USB_MSC
usb_msc_mount();
+#endif
}
// Invoked when device is unmounted
void tud_umount_cb(void) {
+#if CIRCUITPY_USB_MSC
usb_msc_umount();
+#endif
}
// Invoked when usb bus is suspended