diff options
| author | Kevin Banks <kevin@firia.com> | 2021-02-03 16:48:28 -0600 |
|---|---|---|
| committer | Kevin Banks <kevin@firia.com> | 2021-02-03 16:48:28 -0600 |
| commit | 215a56c920b64d522e505d20e1480859fd0ea333 (patch) | |
| tree | 1bee95771e6aeeb459eedb1837382f0431bd565b /supervisor/shared/filesystem.c | |
| parent | 00926b687a619f18deb08c1f59f868a4e9b8514a (diff) | |
| parent | adaf43d6d84a49c382fd6fab3cb96da33aff02e4 (diff) | |
Merge branch 'main' into webusb (trying to get CI back online)
Diffstat (limited to 'supervisor/shared/filesystem.c')
| -rw-r--r-- | supervisor/shared/filesystem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/supervisor/shared/filesystem.c b/supervisor/shared/filesystem.c index 618dc796b..09b30b6ba 100644 --- a/supervisor/shared/filesystem.c +++ b/supervisor/shared/filesystem.c @@ -79,6 +79,8 @@ static void make_sample_code_file(FATFS *fatfs) { f_open(fatfs, &fs, "/code.py", FA_WRITE | FA_CREATE_ALWAYS); f_write(&fs, buffer, sizeof(buffer) - 1, &char_written); f_close(&fs); + #else + make_empty_file(fatfs, "/code.py"); #endif } |
