8000 force_create rename got lost due to editing error · rbarraud/circuitpython@eaa9923 · GitHub
[go: up one dir, main page]

Skip to content

Commit eaa9923

Browse files
committed
force_create rename got lost due to editing error
1 parent 1b12c42 commit eaa9923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/atmel-samd/supervisor/filesystem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static void make_empty_file(FATFS *fatfs, const char *path) {
5050

5151
// we don't make this function static because it needs a lot of stack and we
5252
// want it to be executed without using stack within main() function
53-
void filesystem_init(bool create_allowed, bool create_force) {
53+
void filesystem_init(bool create_allowed, bool force_create) {
5454
// init the vfs object
5555
fs_user_mount_t *vfs_fat = &fs_user_mount_flash;
5656
vfs_fat->flags = 0;
@@ -59,7 +59,7 @@ void filesystem_init(bool create_allowed, bool create_force) {
5959
// try to mount the flash
6060
FRESULT res = f_mount(&vfs_fat->fatfs);
6161

62-
if ((res == FR_NO_FILESYSTEM && create_allowed) || create_force) {
62+
if ((res == FR_NO_FILESYSTEM && create_allowed) || force_create) {
6363
// No filesystem so create a fresh one, or reformat has been requested.
6464
uint8_t working_buf[_MAX_SS];
6565
res = f_mkfs(&vfs_fat->fatfs, FM_FAT, 0, working_buf, sizeof(working_buf));

0 commit comments

Comments
 (0)
0