Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bfca65d

Browse filesBrowse files
committed
Allow drive name to be set per target, with fallback to pre-existing behaviour
1 parent fb8fbbf commit bfca65d
Copy full SHA for bfca65d

1 file changed

+4Lines changed: 4 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎supervisor/shared/filesystem.c‎

Copy file name to clipboardExpand all lines: supervisor/shared/filesystem.c
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ void filesystem_init(bool create_allowed, bool force_create) {
104104
}
105105

106106
// set label
107+
#ifdef CIRCUITPY_DRIVE_LABEL
108+
f_setlabel(&vfs_fat->fatfs, CIRCUITPY_DRIVE_LABEL);
109+
#else
107110
f_setlabel(&vfs_fat->fatfs, "CIRCUITPY");
111+
#endif
108112

109113
// inhibit file indexing on MacOS
110114
f_mkdir(&vfs_fat->fatfs, "/.fseventsd");

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.