@@ -943,7 +943,7 @@ FRESULT remove_chain (
943
943
#if _USE_TRIM
944
944
if (ecl + 1 == nxt ) { /* Is next cluster contiguous? */
945
945
ecl = nxt ;
946
- } else { /* End of contiguous clusters */
946
+ } else { /* End of contiguous clusters */
947
947
rt [0 ] = clust2sect (fs , scl ); /* Start sector */
948
948
rt [1 ] = clust2sect (fs , ecl ) + fs -> csize - 1 ; /* End sector */
949
949
disk_ioctl (fs -> drv , CTRL_TRIM , rt ); /* Erase the block */
@@ -2108,7 +2108,7 @@ int get_ldnumber ( /* Returns logical drive number (-1:invalid drive) */
2108
2108
for (tt = * path ; (UINT )* tt >= (_USE_LFN ? ' ' : '!' ) && * tt != ':' ; tt ++ ) ; /* Find ':' in the path */
2109
2109
if (* tt == ':' ) { /* If a ':' is exist in the path name */
2110
2110
tp = * path ;
2111
- i = * tp ++ - '0' ;
2111
+ i = * tp ++ - '0' ;
2112
2112
if (i < 10 && tp == tt ) { /* Is there a numeric drive id? */
2113
2113
if (i < _VOLUMES ) { /* If a drive id is found, get the value and strip it */
2114
2114
vol = (int )i ;
@@ -2141,7 +2141,7 @@ int get_ldnumber ( /* Returns logical drive number (-1:invalid drive) */
2141
2141
}
2142
2142
return vol ;
2143
2143
}
2144
- #endif // dpgeorge: replaced with custom ff_get_ldnumber
2144
+ #endif // dpgeorge: replaced with custom ff_get_ldnumber
2145
2145
2146
2146
2147
2147
@@ -2955,7 +2955,7 @@ FRESULT f_getcwd (
2955
2955
res = dir_read (& dj , 0 );
2956
2956
if (res != FR_OK ) break ;
2957
2957
if (ccl == ld_clust (dj .fs , dj .dir )) break ; /* Found the entry */
2958
- res = dir_next (& dj , 0 );
2958
+ res = dir_next (& dj , 0 );
2959
2959
} while (res == FR_OK );
2960
2960
if (res == FR_NO_FILE ) res = FR_INT_ERR ;/* It cannot be 'not found'. */
2961
2961
if (res != FR_OK ) break ;
@@ -4047,7 +4047,7 @@ FRESULT f_forward (
4047
4047
/*-----------------------------------------------------------------------*/
4048
4048
/* Create file system on the logical drive */
4049
4049
/*-----------------------------------------------------------------------*/
4050
- #define N_ROOTDIR 512 /* Number of root directory entries for FAT12/16 */
4050
+ #define N_ROOTDIR 128 /* Number of root directory entries for FAT12/16 */
4051
4051
#define N_FATS 1 /* Number of FATs (1 or 2) */
4052
4052
4053
4053
0 commit comments