[Horus] Attempt to fix the problem with some files after a massstorage session

This commit is contained in:
Bertrand Songis
2016-08-31 23:54:43 +02:00
parent 76f0b306aa
commit 4221bfdf74
3 changed files with 30 additions and 11 deletions
+2
View File
@@ -308,6 +308,8 @@ void sdMount()
{
TRACE("sdMount");
diskCache.clear();
if (f_mount(&g_FATFS_Obj, "", 1) == FR_OK) {
// call sdGetFreeSectors() now because f_getfree() takes a long time first time it's called
sdGetFreeSectors();