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 d5e5c17 commit 3864708Copy full SHA for 3864708
ports/stm32/main.c
@@ -282,14 +282,11 @@ static bool init_sdcard_fs(void) {
282
}
283
284
285
- #if MICROPY_HW_ENABLE_USB
+ #if MICROPY_HW_ENABLE_USB && MICROPY_HW_USB_MSC
286
if (pyb_usb_storage_medium == PYB_USB_STORAGE_MEDIUM_NONE) {
287
// if no USB MSC medium is selected then use the SD card
288
pyb_usb_storage_medium = PYB_USB_STORAGE_MEDIUM_SDCARD;
289
290
- #endif
291
-
292
293
// only use SD card as current directory if that's what the USB medium is
294
if (pyb_usb_storage_medium == PYB_USB_STORAGE_MEDIUM_SDCARD)
295
#endif
0 commit comments