Skip to content

Commit 5a0e994

Browse files
committed
storage: Correct when we check for USB mounts
Closes adafruit#4417
1 parent e084a92 commit 5a0e994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/storage/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void common_hal_storage_remount(const char *mount_path, bool readonly, bool disa
149149
mp_raise_OSError(MP_EINVAL);
150150
}
151151

152-
#ifdef USB_AVAILABLE
152+
#if CIRCUITPY_USB_MSC
153153
if (!usb_msc_ejected()) {
154154
mp_raise_RuntimeError(translate("Cannot remount '/' when USB is active."));
155155
}

0 commit comments

Comments
 (0)