Skip to content

Commit d116e20

Browse files
committed
fix sdcard_unmount crashing when sd missing
1 parent 5e19e08 commit d116e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SD/src/sd_diskio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ uint8_t sdcard_unmount(uint8_t pdrv)
774774
card->type = CARD_NONE;
775775

776776
char drv[3] = {(char)('0' + pdrv), ':', 0};
777-
f_mount(NULL, drv, 0);
777+
// f_mount(NULL, drv, 0);
778778
return 0;
779779
}
780780

0 commit comments

Comments
 (0)