Skip to content

Commit 735b280

Browse files
committed
Merge remote-tracking branch 'ata/update-sd-reinsert'
2 parents d2bebf7 + 1a971dc commit 735b280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ static bool _mount(void)
108108
sd_mmc_resume_clock();
109109
#endif
110110
memset(&fs, 0, sizeof(FATFS));
111-
int res = f_mount(&fs, "", 1);
111+
FRESULT res = f_mount(&fs, "", 1);
112112
if (res == FR_DISK_ERR) {
113113
#ifndef TESTING
114114
sd_mmc_start();
115115
#endif
116116
res = f_mount(&fs, "", 1);
117117
}
118-
if (res == FR_INVALID_DRIVE) {
118+
if (res != FR_OK) {
119119
#ifndef TESTING
120120
sd_mmc_pause_clock();
121121
#endif

0 commit comments

Comments
 (0)