diff options
| author | Gadi Rotenberg <gadi@polynero.com> | 2020-02-09 13:25:16 +0200 |
|---|---|---|
| committer | Benny Meisels <benny.meisels@gmail.com> | 2020-02-12 09:57:58 +0200 |
| commit | 07708f15185d96930621493c3e2886cc2e948622 (patch) | |
| tree | 79c866d9d5e4f33b79df6df91c1804cbba58557f /shared-module/storage | |
| parent | b93d6e861b80d34ff3b09f4f84a85a6bfd531f3d (diff) | |
Added fix to allow remount when usb enabled but msc is ejected
Diffstat (limited to 'shared-module/storage')
| -rw-r--r-- | shared-module/storage/__init__.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shared-module/storage/__init__.c b/shared-module/storage/__init__.c index 215e1356a..c3d4b50c8 100644 --- a/shared-module/storage/__init__.c +++ b/shared-module/storage/__init__.c @@ -149,9 +149,7 @@ void common_hal_storage_remount(const char *mount_path, bool readonly, bool disa } #ifdef USB_AVAILABLE - // TODO(dhalbert): is this is a good enough check? It checks for - // CDC enabled. There is no "MSC enabled" check. - if (usb_enabled()) { + if (!usb_msc_ejected()) { mp_raise_RuntimeError(translate("Cannot remount '/' when USB is active.")); } #endif |
