Various bugfixes

This commit is contained in:
ctcaer@gmail.com committed 2019-06-30 03:15:46 +03:00
1 parent c5ab4d6abd
commit 8101fd3f7f
23 files changed
+189 -186

No files matched your search

+1 -1
View File
@@ -4726,7 +4726,7 @@ FRESULT f_getfree (
/* Get logical drive */
res = find_volume(&path, &fs, 0);
if (res == FR_OK) {
*fatfs = fs; /* Return ptr to the fs object */
if (fatfs) *fatfs = fs; /* Return ptr to the fs object */
/* If free_clst is valid, return it without full FAT scan */
if (fs->free_clst <= fs->n_fatent - 2) {
*nclst = fs->free_clst;