Skip to content

Commit

Permalink
workaround for FS implementations that do not support fflush() (#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
everslick authored and me-no-dev committed Apr 9, 2019
1 parent 8091c2c commit 67ee7c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/FS/src/vfs_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ void VFSFileImpl::flush()
return;
}
fflush(_f);
// workaround for https://github.com/espressif/arduino-esp32/issues/1293
fsync(fileno(_f));
}

bool VFSFileImpl::seek(uint32_t pos, SeekMode mode)
Expand Down

0 comments on commit 67ee7c3

Please sign in to comment.