Commit 67ee7c32 authored by Clemens Kirchgatterer's avatar Clemens Kirchgatterer Committed by Me No Dev

workaround for FS implementations that do not support fflush() (#2596)

https://github.com/espressif/arduino-esp32/issues/1293
parent 8091c2ca
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment