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);
// Unmount ramdisk.
f_mount(NULL, "ram:", 1);
f_unmount("ram:");
// Format as exFAT w/ 32KB cluster with no MBR.
res = f_mkfs("ram:", FM_EXFAT | FM_SFD, RAMDISK_CLUSTER_SZ, buf, 0x400000);