From bfca65d86feed89bf64bc758368e2f871fdf8de2 Mon Sep 17 00:00:00 2001 From: Dave Marples Date: Wed, 12 Feb 2020 11:09:48 +0000 Subject: [PATCH] Allow drive name to be set per target, with fallback to pre-existing behaviour --- supervisor/shared/filesystem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c index 3b799619f4..f6b94e38b5 100644 --- a/supervisor/shared/filesystem.c +++ b/supervisor/shared/filesystem.c @@ -104,7 +104,11 @@ void filesystem_init(bool create_allowed, bool force_create) { } // set label +#ifdef CIRCUITPY_DRIVE_LABEL + f_setlabel(&vfs_fat->fatfs, CIRCUITPY_DRIVE_LABEL); +#else f_setlabel(&vfs_fat->fatfs, "CIRCUITPY"); +#endif // inhibit file indexing on MacOS f_mkdir(&vfs_fat->fatfs, "/.fseventsd");