Skip to content

Commit ae687a2

Browse files
authored
Merge pull request #16 from visrealm/dev
Use sd_card state to keep FATFS
2 parents 54ec897 + b0a313a commit ae687a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/boot-menu/boot-menu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ void runBootMenu()
171171
vrEmuTms9918SetAddressWrite(tms9918, TMS_DEFAULT_VRAM_NAME_ADDRESS + 32 * 3 + 1);
172172
vrEmuTms9918WriteString(tms9918, "Checking for MicroSD...");
173173

174-
FATFS fs;
175-
FRESULT fr = f_mount(&fs, "", 1);
174+
sd_card_t *sdc = sd_get_by_num(0);
175+
FRESULT fr = f_mount(&sdc->state.fatfs, "", 1);
176176

177177
TCHAR label[255] = "Not present";
178178
DWORD vsn = 0;

0 commit comments

Comments
 (0)