diff options
| author | Scott Shawcroft <scott@adafruit.com> | 2020-02-12 10:43:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-12 10:43:04 -0800 |
| commit | cde9b63eabb3ca04342bae48124a0f04a6f08eb8 (patch) | |
| tree | b7dc76afd074c20091cfea0b311d6d74bd5edd8a /supervisor/shared | |
| parent | 01507a91db9af931510c896a28734f5cc20d610d (diff) | |
| parent | bfca65d86feed89bf64bc758368e2f871fdf8de2 (diff) | |
Merge pull request #2615 from mubes/label-drive
Allow drive name to be set per target
Diffstat (limited to 'supervisor/shared')
| -rw-r--r-- | supervisor/shared/filesystem.c | 4 |
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"); |
