Skip to content

Commit 0801f3c

Browse files
committed
Fix boards without USB MSC
1 parent d0c8400 commit 0801f3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-module/storage/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ void common_hal_storage_remount(const char *mount_path, bool readonly, bool disa
190190
filesystem_set_concurrent_write_protection(fs_usermount, !disable_concurrent_write_protection);
191191
blockdev_unlock(fs_usermount);
192192

193+
#if CIRCUITPY_USB_DEVICE && CIRCUITPY_USB_MSC
193194
usb_msc_remount(fs_usermount);
195+
#endif
194196
}
195197

196198
void common_hal_storage_erase_filesystem(bool extended) {

0 commit comments

Comments
 (0)