diff options
| author | Dan Halbert <halbert@halwitz.org> | 2018-04-10 12:24:27 -0400 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2018-04-10 12:24:27 -0400 |
| commit | eaa9923a8fc2eee6648bf6f839a88ae1e0e72a7f (patch) | |
| tree | 654a7b6ed069c52d598bcfadcde82db0e9f5d67c | |
| parent | 1b12c424775f2204f0d56381e83863b927295f95 (diff) | |
force_create rename got lost due to editing error
| -rw-r--r-- | ports/atmel-samd/supervisor/filesystem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/atmel-samd/supervisor/filesystem.c b/ports/atmel-samd/supervisor/filesystem.c index a165d8887..2ba29f279 100644 --- a/ports/atmel-samd/supervisor/filesystem.c +++ b/ports/atmel-samd/supervisor/filesystem.c @@ -50,7 +50,7 @@ static void make_empty_file(FATFS *fatfs, const char *path) { // we don't make this function static because it needs a lot of stack and we // want it to be executed without using stack within main() function -void filesystem_init(bool create_allowed, bool create_force) { +void filesystem_init(bool create_allowed, bool force_create) { // init the vfs object fs_user_mount_t *vfs_fat = &fs_user_mount_flash; vfs_fat->flags = 0; @@ -59,7 +59,7 @@ void filesystem_init(bool create_allowed, bool create_force) { // try to mount the flash FRESULT res = f_mount(&vfs_fat->fatfs); - if ((res == FR_NO_FILESYSTEM && create_allowed) || create_force) { + if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) { // No filesystem so create a fresh one, or reformat has been requested. uint8_t working_buf[_MAX_SS]; res = f_mkfs(&vfs_fat->fatfs, FM_FAT, 0, working_buf, sizeof(working_buf)); |
