flush on write

This commit is contained in:
steve 2023-09-30 15:57:25 +01:00
parent 53a16b3a29
commit 2b31012100
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ uint8_t flash_filer::read() {
void flash_filer::write(uint8_t b) {
#if defined(USE_SD) || defined(USE_SPIFFS) || defined(USE_FS)
file.write(b);
file.flush();
#endif
}