We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 180b485 commit 9c6466cCopy full SHA for 9c6466c
supervisor/shared/filesystem.c
@@ -71,14 +71,13 @@ static void make_empty_file(FATFS *fatfs, const char *path) {
71
72
73
static void make_sample_code_file(FATFS *fatfs) {
74
- FIL fs;
75
- UINT char_written = 0;
76
- const byte buffer[] = "print('Hello World!')\n";
77
-
78
#if CIRCUITPY_FULL_BUILD == 0
79
- make_empty_file(&vfs_fat->fatfs, "/code.py");
+ make_empty_file(fatfs, "/code.py");
80
81
#else
+ FIL fs;
+ UINT char_written = 0;
+ const byte buffer[] = "print('Hello World!')\n";
82
//Create or modify existing code.py file
83
f_open(fatfs, &fs, "/code.py", FA_WRITE | FA_CREATE_ALWAYS);
84
f_write(&fs, buffer, sizeof(buffer) - 1, &char_written);
0 commit comments