diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-02-12 10:33:15 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-12 10:33:15 -0800 |
| commit | 8e8eb077917ef2e6d417df4eb7959feb1bc6a35a (patch) | |
| tree | 4cfe510453346992528b2322f3100e6713a8e8ad /shared-module | |
| parent | fb8fbbf42e2cc54722631bd79d5f16b8d235b640 (diff) | |
| parent | 07708f15185d96930621493c3e2886cc2e948622 (diff) | |
Merge pull request #2606 from aramcon-badge/usb-remount-fix
Fix to allow remount when usb enabled but not msc
Diffstat (limited to 'shared-module')
| -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 |
