Skip to content

Commit

Permalink
Merge remote-tracking branch 'ata/update-sd-reinsert'
Browse files Browse the repository at this point in the history
  • Loading branch information
asi345 committed Nov 6, 2024
2 parents d2bebf7 + 1a971dc commit 735b280
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 735b280

Please sign in to comment.