storage: Correct when we check for USB mounts

Closes #4417
This commit is contained in:
Jeff Epler 2021-03-22 11:45:29 -05:00
parent e084a92671
commit 5a0e9945e6
1 changed files with 1 additions and 1 deletions

View File

@ -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."));
}