diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fatfs/ff.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/fatfs/ff.c b/lib/fatfs/ff.c index 774d37a45..68c529a28 100644 --- a/lib/fatfs/ff.c +++ b/lib/fatfs/ff.c @@ -943,7 +943,7 @@ FRESULT remove_chain ( #if _USE_TRIM
if (ecl + 1 == nxt) { /* Is next cluster contiguous? */
ecl = nxt;
- } else { /* End of contiguous clusters */
+ } else { /* End of contiguous clusters */
rt[0] = clust2sect(fs, scl); /* Start sector */
rt[1] = clust2sect(fs, ecl) + fs->csize - 1; /* End sector */
disk_ioctl(fs->drv, CTRL_TRIM, rt); /* Erase the block */
@@ -2108,7 +2108,7 @@ int get_ldnumber ( /* Returns logical drive number (-1:invalid drive) */ for (tt = *path; (UINT)*tt >= (_USE_LFN ? ' ' : '!') && *tt != ':'; tt++) ; /* Find ':' in the path */
if (*tt == ':') { /* If a ':' is exist in the path name */
tp = *path;
- i = *tp++ - '0';
+ i = *tp++ - '0';
if (i < 10 && tp == tt) { /* Is there a numeric drive id? */
if (i < _VOLUMES) { /* If a drive id is found, get the value and strip it */
vol = (int)i;
@@ -2141,7 +2141,7 @@ int get_ldnumber ( /* Returns logical drive number (-1:invalid drive) */ }
return vol;
}
-#endif // dpgeorge: replaced with custom ff_get_ldnumber
+#endif // dpgeorge: replaced with custom ff_get_ldnumber
@@ -2955,7 +2955,7 @@ FRESULT f_getcwd ( res = dir_read(&dj, 0);
if (res != FR_OK) break;
if (ccl == ld_clust(dj.fs, dj.dir)) break; /* Found the entry */
- res = dir_next(&dj, 0);
+ res = dir_next(&dj, 0);
} while (res == FR_OK);
if (res == FR_NO_FILE) res = FR_INT_ERR;/* It cannot be 'not found'. */
if (res != FR_OK) break;
@@ -4047,7 +4047,7 @@ FRESULT f_forward ( /*-----------------------------------------------------------------------*/
/* Create file system on the logical drive */
/*-----------------------------------------------------------------------*/
-#define N_ROOTDIR 512 /* Number of root directory entries for FAT12/16 */
+#define N_ROOTDIR 128 /* Number of root directory entries for FAT12/16 */
#define N_FATS 1 /* Number of FATs (1 or 2) */
|
