summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2021-03-22 11:45:29 -0500
committerJeff Epler <jepler@gmail.com>2021-03-22 11:45:54 -0500
commit5a0e9945e6efeebf29a4a63f0424eaed62d02a17 (patch)
tree6b2d1f1493c1b058bbfa1e80f71481439d106cb7 /shared-module
parente084a92671b01220c795d114bee9d5058dbfa680 (diff)
storage: Correct when we check for USB mounts
Closes #4417
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/storage/__init__.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/storage/__init__.c b/shared-module/storage/__init__.c
index db994158d..5c743377d 100644
--- a/shared-module/storage/__init__.c
+++ b/shared-module/storage/__init__.c
@@ -149,7 +149,7 @@ void common_hal_storage_remount(const char *mount_path, bool readonly, bool disa
mp_raise_OSError(MP_EINVAL);
}
- #ifdef USB_AVAILABLE
+ #if CIRCUITPY_USB_MSC
if (!usb_msc_ejected()) {
mp_raise_RuntimeError(translate("Cannot remount '/' when USB is active."));
}