summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorDave Marples <dave@marples.net>2020-02-12 11:09:48 +0000
committerDave Marples <dave@marples.net>2020-02-12 11:09:48 +0000
commitbfca65d86feed89bf64bc758368e2f871fdf8de2 (patch)
tree5bb077e634e5633a5904ed37b226dd6352e1fcb4 /supervisor
parentfb8fbbf42e2cc54722631bd79d5f16b8d235b640 (diff)
Allow drive name to be set per target, with fallback to pre-existing behaviour
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/filesystem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c
index 3b799619f..f6b94e38b 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");