From d116e208c62987bd6b2cacf30ca1560d1a64d656 Mon Sep 17 00:00:00 2001 From: italocjs Date: Sat, 13 Jul 2024 19:58:27 -0300 Subject: [PATCH] fix sdcard_unmount crashing when sd missing --- libraries/SD/src/sd_diskio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/SD/src/sd_diskio.cpp b/libraries/SD/src/sd_diskio.cpp index da967338589..b03e66ea39e 100644 --- a/libraries/SD/src/sd_diskio.cpp +++ b/libraries/SD/src/sd_diskio.cpp @@ -774,7 +774,7 @@ uint8_t sdcard_unmount(uint8_t pdrv) card->type = CARD_NONE; char drv[3] = {(char)('0' + pdrv), ':', 0}; - f_mount(NULL, drv, 0); + // f_mount(NULL, drv, 0); return 0; }