Skip to content

Commit 01973e1

Browse files
authored
Merge pull request #10351 from relic-se/sdcardio-drive-fix
Remove `gc_nbytes` check during sd card LUN mapping
2 parents ca2977b + 1dc4628 commit 01973e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/usb/usb_msc_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static fs_user_mount_t *get_vfs(int lun) {
141141
if (lun == SDCARD_LUN) {
142142
const char *path_under_mount;
143143
fs_user_mount_t *sdcard = filesystem_for_path("/sd", &path_under_mount);
144-
if (sdcard != root && (sdcard->blockdev.flags & MP_BLOCKDEV_FLAG_NATIVE) != 0 && gc_nbytes(sdcard) == 0) {
144+
if (sdcard != root && (sdcard->blockdev.flags & MP_BLOCKDEV_FLAG_NATIVE) != 0) {
145145
return sdcard;
146146
} else {
147147
// Clear any ejected state so that a re-insert causes it to reappear.

0 commit comments

Comments
 (0)