diff options
| author | Damien George | 2014-09-29 09:48:35 +0100 |
|---|---|---|
| committer | Damien George | 2014-09-29 15:26:11 +0100 |
| commit | 3a2795e200bd3b1248768b6b0fef6bb28487ed42 (patch) | |
| tree | a86d10fe441592c153da82f54fd61eec5ef6792d /stmhal/fatfs | |
| parent | f042d7a4d7197d87798bc9727e9df094a3edd7c1 (diff) | |
stmhal: Add label to internal flash drive on creation.
Diffstat (limited to 'stmhal/fatfs')
| -rw-r--r-- | stmhal/fatfs/src/ff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/fatfs/src/ff.c b/stmhal/fatfs/src/ff.c index 5b0ba240c..b7d8d27c4 100644 --- a/stmhal/fatfs/src/ff.c +++ b/stmhal/fatfs/src/ff.c @@ -3793,6 +3793,7 @@ FRESULT f_setlabel ( /* Create a volume label in directory form */
vn[0] = 0;
+ if (label[0] == '/') label++;
for (sl = 0; label[sl]; sl++) ; /* Get name length */
for ( ; sl && label[sl-1] == ' '; sl--) ; /* Remove trailing spaces */
if (sl) { /* Create volume label in directory form */
|
