We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2bebf7 + 1a971dc commit 735b280Copy full SHA for 735b280
src/sd.c
@@ -108,14 +108,14 @@ static bool _mount(void)
108
sd_mmc_resume_clock();
109
#endif
110
memset(&fs, 0, sizeof(FATFS));
111
- int res = f_mount(&fs, "", 1);
+ FRESULT res = f_mount(&fs, "", 1);
112
if (res == FR_DISK_ERR) {
113
#ifndef TESTING
114
sd_mmc_start();
115
116
res = f_mount(&fs, "", 1);
117
}
118
- if (res == FR_INVALID_DRIVE) {
+ if (res != FR_OK) {
119
120
sd_mmc_pause_clock();
121
0 commit comments