fatfs v0.10c Nov 09,2014:

- Added a configuration option for the platforms without RTC. (_FS_NORTC)
- Fixed volume label created by Mac OS X cannot be retrieved with f_getlabel().
- Fixed a potential problem of FAT access that can appear on disk error.
- Fixed null pointer dereference on attempting to delete the root direcotry.
This commit is contained in:
savelij13 committed 2025-09-11 10:04:38 +03:00
1 parent fb65f51fbe
commit a5177b6280
79 files changed
+1601 -1367

No files matched your search

+2 -2
View File
@@ -77,7 +77,7 @@ FRESULT scan_files (
FILINFO fno;
DIR dir;
int i;
char *fn; <span class="c">/* This function is assuming non-Unicode cfg. */</span>
char *fn; <span class="c">/* This function assumes non-Unicode configuration */</span>
<span class="k">#if</span> _USE_LFN
static char lfn[_MAX_LFN + 1]; <span class="c">/* Buffer to store the LFN */</span>
fno.lfname = lfn;
@@ -100,8 +100,8 @@ FRESULT scan_files (
if (fno.fattrib &amp; AM_DIR) { <span class="c">/* It is a directory */</span>
sprintf(&amp;path[i], "/%s", fn);
res = scan_files(path);
if (res != FR_OK) break;
path[i] = 0;
if (res != FR_OK) break;
} else { <span class="c">/* It is a file. */</span>
printf("%s/%s\n", path, fn);
}