Skip to content

Commit

Permalink
Merge branch 'bugfix/fs_write_ok_but_no_data_in_example' into 'master'
Browse files Browse the repository at this point in the history
fix: Fixed an issue where fwrite() ok but data was not actually written to fs sometimes

See merge request application/esp-at!1714
  • Loading branch information
xcguang committed Jan 9, 2025
2 parents 5302cdc + 35b447e commit eedd4f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/at_http_get_to_fatfs/custom/at_custom_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ static void at_http_to_fs_clean(void)
// file system
if (sp_http_to_fs->fs_handle) {
if (sp_http_to_fs->fs_handle->fp) {
fflush(sp_http_to_fs->fs_handle->fp);
fclose(sp_http_to_fs->fs_handle->fp);
sp_http_to_fs->fs_handle->fp = NULL;
}
Expand Down

0 comments on commit eedd4f2

Please sign in to comment.