From eaa9923a8fc2eee6648bf6f839a88ae1e0e72a7f Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 10 Apr 2018 12:24:27 -0400 Subject: force_create rename got lost due to editing error --- ports/atmel-samd/supervisor/filesystem.c | 4 ++-- 1 file 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)); -- cgit v1.2.3