Skip to content

Commit

Permalink
Updated SPIFFs with fix for object writes.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Apr 12, 2019
1 parent fee27ee commit 16e5017
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Sming/Services/SpifFS/spiffs_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,17 @@
#define SPIFFS_IX_MAP 1
#endif

// By default SPIFFS in some cases relies on the property of NOR flash that bits
// cannot be set from 0 to 1 by writing and that controllers will ignore such
// bit changes. This results in fewer reads as SPIFFS can in some cases perform
// blind writes, with all bits set to 1 and only those it needs reset set to 0.
// Most of the chips and controllers allow this behavior, so the default is to
// use this technique. If your controller is one of the rare ones that don't,
// turn this option on and SPIFFS will perform a read-modify-write instead.
#ifndef SPIFFS_NO_BLIND_WRITES
#define SPIFFS_NO_BLIND_WRITES 0
#endif

// Set SPIFFS_TEST_VISUALISATION to non-zero to enable SPIFFS_vis function
// in the api. This function will visualize all filesystem using given printf
// function.
Expand Down

0 comments on commit 16e5017

Please sign in to comment.