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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy