Skip to content

Commit cde9b63

Browse files
authored
Merge pull request #2615 from mubes/label-drive
Allow drive name to be set per target
2 parents 01507a9 + bfca65d commit cde9b63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

supervisor/shared/filesystem.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ void filesystem_init(bool create_allowed, bool force_create) {
104104
}
105105

106106
// set label
107+
#ifdef CIRCUITPY_DRIVE_LABEL
108+
f_setlabel(&vfs_fat->fatfs, CIRCUITPY_DRIVE_LABEL);
109+
#else
107110
f_setlabel(&vfs_fat->fatfs, "CIRCUITPY");
111+
#endif
108112

109113
// inhibit file indexing on MacOS
110114
f_mkdir(&vfs_fat->fatfs, "/.fseventsd");

0 commit comments

Comments
 (0)