Skip to content

Commit 3864708

Browse files
committed
stm32/usb: Add support for using TinyUSB stack.
Signed-off-by: Andrew Leech <[email protected]>
1 parent d5e5c17 commit 3864708

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ports/stm32/main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,11 @@ static bool init_sdcard_fs(void) {
282282
}
283283
}
284284

285-
#if MICROPY_HW_ENABLE_USB
285+
#if MICROPY_HW_ENABLE_USB && MICROPY_HW_USB_MSC
286286
if (pyb_usb_storage_medium == PYB_USB_STORAGE_MEDIUM_NONE) {
287287
// if no USB MSC medium is selected then use the SD card
288288
pyb_usb_storage_medium = PYB_USB_STORAGE_MEDIUM_SDCARD;
289289
}
290-
#endif
291-
292-
#if MICROPY_HW_ENABLE_USB
293290
// only use SD card as current directory if that's what the USB medium is
294291
if (pyb_usb_storage_medium == PYB_USB_STORAGE_MEDIUM_SDCARD)
295292
#endif

0 commit comments

Comments
 (0)