summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-02-12 10:43:04 -0800
committerGitHub <noreply@github.com>2020-02-12 10:43:04 -0800
commitcde9b63eabb3ca04342bae48124a0f04a6f08eb8 (patch)
treeb7dc76afd074c20091cfea0b311d6d74bd5edd8a
parent01507a91db9af931510c896a28734f5cc20d610d (diff)
parentbfca65d86feed89bf64bc758368e2f871fdf8de2 (diff)
Merge pull request #2615 from mubes/label-drive
Allow drive name to be set per target
-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");