diff --git a/radio/src/FatFs/ff.c b/radio/src/FatFs/ff.c index 9c887c459..b32d1ada0 100644 --- a/radio/src/FatFs/ff.c +++ b/radio/src/FatFs/ff.c @@ -2865,6 +2865,11 @@ FRESULT f_close ( unlock_fs(fs, FR_OK); /* Unlock volume */ #endif } +#if _FS_REENTRANT + else if (res == FR_NOT_READY) { + unlock_fs(fp->fs, res); + } +#endif } return res; } @@ -3247,6 +3252,11 @@ FRESULT f_closedir ( unlock_fs(fs, FR_OK); /* Unlock volume */ #endif } +#if _FS_REENTRANT + else if (res == FR_NOT_READY) { + unlock_fs(dp->fs, res); + } +#endif return res; }