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.
2 parents 888a0c5 + 8c8d60f commit f4886a6Copy full SHA for f4886a6
supervisor/shared/usb/tusb_config.h
@@ -70,7 +70,7 @@
70
#define CFG_TUD_CDC 1
71
#endif
72
73
-#define CFG_TUD_MSC 1
+#define CFG_TUD_MSC CIRCUITPY_USB_MSC
74
#define CFG_TUD_HID CIRCUITPY_USB_HID
75
#define CFG_TUD_MIDI CIRCUITPY_USB_MIDI
76
#define CFG_TUD_VENDOR CIRCUITPY_USB_VENDOR
supervisor/shared/usb/usb.c
@@ -131,12 +131,16 @@ void usb_irq_handler(void) {
131
132
// Invoked when device is mounted
133
void tud_mount_cb(void) {
134
+#if CIRCUITPY_USB_MSC
135
usb_msc_mount();
136
+#endif
137
}
138
139
// Invoked when device is unmounted
140
void tud_umount_cb(void) {
141
142
usb_msc_umount();
143
144
145
146
// Invoked when usb bus is suspended
0 commit comments