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:
@@ -50,8 +50,9 @@ void application_entry(void *arg)
|
|||||||
} else {
|
} else {
|
||||||
printf("read error: %d\n", res);
|
printf("read error: %d\n", res);
|
||||||
}
|
}
|
||||||
f_close(&file);
|
|
||||||
|
|
||||||
f_sync(&file);
|
f_sync(&file);
|
||||||
|
|
||||||
|
f_close(&file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user