From 3a2795e200bd3b1248768b6b0fef6bb28487ed42 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 29 Sep 2014 09:48:35 +0100 Subject: stmhal: Add label to internal flash drive on creation. --- stmhal/fatfs/src/ff.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stmhal/fatfs') 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 */ -- cgit v1.2.3