bdk: use f_unmount instead of null f_mount

This commit is contained in:
CTCaer
2025-06-22 13:34:42 +03:00
parent 05cc9b6985
commit 9fe953bee1
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ int ram_disk_init(void *ram_fs, u32 ramdisk_size)
disk_set_info(DRIVE_RAM, SET_SECTOR_COUNT, &ramdisk_size); disk_set_info(DRIVE_RAM, SET_SECTOR_COUNT, &ramdisk_size);
// Unmount ramdisk. // Unmount ramdisk.
f_mount(NULL, "ram:", 1); f_unmount("ram:");
// Format as exFAT w/ 32KB cluster with no MBR. // Format as exFAT w/ 32KB cluster with no MBR.
res = f_mkfs("ram:", FM_EXFAT | FM_SFD, RAMDISK_CLUSTER_SZ, buf, 0x400000); res = f_mkfs("ram:", FM_EXFAT | FM_SFD, RAMDISK_CLUSTER_SZ, buf, 0x400000);

View File

@@ -227,7 +227,7 @@ static void _sd_deinit(bool deinit)
if (sd_init_done) if (sd_init_done)
{ {
if (sd_mounted) if (sd_mounted)
f_mount(NULL, "0:", 1); // Volume 0 is SD. f_unmount("0:"); // Volume 0 is SD.
if (deinit) if (deinit)
{ {