Skip to content

Commit bfca65d

Browse files
committed
Allow drive name to be set per target, with fallback to pre-existing behaviour
1 parent fb8fbbf commit bfca65d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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)