Allow drive name to be set per target, with fallback to pre-existing behaviour

This commit is contained in:
Dave Marples 2020-02-12 11:09:48 +00:00
parent fb8fbbf42e
commit bfca65d86f

View File

@ -104,7 +104,11 @@ void filesystem_init(bool create_allowed, bool force_create) {
} }
// set label // set label
#ifdef CIRCUITPY_DRIVE_LABEL
f_setlabel(&vfs_fat->fatfs, CIRCUITPY_DRIVE_LABEL);
#else
f_setlabel(&vfs_fat->fatfs, "CIRCUITPY"); f_setlabel(&vfs_fat->fatfs, "CIRCUITPY");
#endif
// inhibit file indexing on MacOS // inhibit file indexing on MacOS
f_mkdir(&vfs_fat->fatfs, "/.fseventsd"); f_mkdir(&vfs_fat->fatfs, "/.fseventsd");