Skip to content

Commit

Permalink
sdcard: improvement on reinsertion fix
Browse files Browse the repository at this point in the history
Signed-off-by: asi345 <[email protected]>
  • Loading branch information
asi345 committed Oct 31, 2024
1 parent d2bebf7 commit 1a971dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ static bool _mount(void)
sd_mmc_resume_clock();
#endif
memset(&fs, 0, sizeof(FATFS));
int res = f_mount(&fs, "", 1);
FRESULT res = f_mount(&fs, "", 1);
if (res == FR_DISK_ERR) {
#ifndef TESTING
sd_mmc_start();
#endif
res = f_mount(&fs, "", 1);
}
if (res == FR_INVALID_DRIVE) {
if (res != FR_OK) {
#ifndef TESTING
sd_mmc_pause_clock();
#endif
Expand Down

0 comments on commit 1a971dc

Please sign in to comment.