Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67ee7c3

Browse files
everslickme-no-dev
authored andcommitted
workaround for FS implementations that do not support fflush() (#2596)
#1293
1 parent 8091c2c commit 67ee7c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎libraries/FS/src/vfs_api.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ void VFSFileImpl::flush()
340340
return;
341341
}
342342
fflush(_f);
343+
// workaround for https://github.com/espressif/arduino-esp32/issues/1293
344+
fsync(fileno(_f));
343345
}
344346

345347
bool VFSFileImpl::seek(uint32_t pos, SeekMode mode)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /