diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-02-12 14:31:08 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-02-12 14:31:08 -0500 |
| commit | b7bb85a4dadd896a82fd1a90dc1f9283b15f91e0 (patch) | |
| tree | 8206f1a9616671a2a6dfe6f1f1ddcad5d520b3cf /shared-module | |
| parent | 7831c475b9f38d8db8e2b8b62bc110f99185b8cb (diff) | |
| parent | 35abc48a650ef990389a674200ffc48f4d336b15 (diff) | |
Merge remote-tracking branch 'upstream/master' into stm32-espruino-wifi
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 |
