From 2b31012100adebfb9669bf3a7617662772dfb914 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 30 Sep 2023 15:57:25 +0100 Subject: [PATCH] flush on write --- flash_filer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/flash_filer.cpp b/flash_filer.cpp index 97cbbe1..0e759bd 100644 --- a/flash_filer.cpp +++ b/flash_filer.cpp @@ -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 }