Merge pull request #14137 from rajkan01/fix_fatfilesytem_unmount

Storage: Fix FATFileSystem unmount issue
pull/14092/head
Martin Kojtal 2021-01-20 14:53:24 +00:00 committed by GitHub
commit aeabb9382b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -330,6 +330,11 @@ int FATFileSystem::unmount()
}
FRESULT res = f_mount(NULL, _fsid, 0);
int err = _ffs[_id]->deinit();
if (err) {
unlock();
return err;
}
_ffs[_id] = NULL;
_id = -1;
unlock();