workaround for FS implementations that do not support fflush() (#2596)
https://github.com/espressif/arduino-esp32/issues/1293
This commit is contained in:
parent
8091c2cac7
commit
67ee7c32e7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user