summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2021-03-22 15:52:10 -0700
committerGitHub <noreply@github.com>2021-03-22 15:52:10 -0700
commitd52662856bb2a7b5ca6909aa6bb957e8eb3cf871 (patch)
treeeb2c16016f0801a6b2f7e246671e5adf5e42cc08 /shared-module
parent2373e6478027c897aac211e4d5b012944b819ec8 (diff)
parent904e94abeb6f5a94f26d4467ce8f69ba00b727e8 (diff)
Merge pull request #4462 from jepler/disable-usb-cdc
storage: Correct when we check for USB mounts
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."));
}