Minor optimisation to the step f_sync and f_close

Moved the code 'f_sync(&file);' ahead of 'f_close(&file);'.
This commit is contained in:
David Lin
2020-02-16 11:08:32 +08:00
committed by GitHub
parent 3ddeb9c5cd
commit 32a8a39943

View File

@@ -50,8 +50,9 @@ void application_entry(void *arg)
} else {
printf("read error: %d\n", res);
}
f_close(&file);
f_sync(&file);
f_close(&file);
}