Browse Source

kconfig: add LITTLEFS_FLUSH_FILE_EVERY_WRITE config

Ilia Lutchenko 2 years ago
parent
commit
4ee5881509
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Kconfig

+ 9 - 0
Kconfig

@@ -133,5 +133,14 @@ menu "LittleFS"
             instead of throwing an error. Similarly, upon the deletion of the
             last file in a folder, the folder will be deleted. It is recommended
             to only enable this flag as a stop-gap solution.
+            
+    config LITTLEFS_FLUSH_FILE_EVERY_WRITE
+        bool "Flush file to flash after each write operation"
+        default "n"
+        help
+            Enabling this feature extends SPIFFS capability.
+            In SPIFFS data is written immediately to the flash storage when fflush() function called.
+            In LittleFS flush() does not write data to the flash, and fsync() call needed after.
+            With this feature fflush() will write data to the storage.
 
 endmenu