diff --git a/Sming/Services/SpifFS/spiffs_config.h b/Sming/Services/SpifFS/spiffs_config.h index caeff78c0b..3e80592d07 100644 --- a/Sming/Services/SpifFS/spiffs_config.h +++ b/Sming/Services/SpifFS/spiffs_config.h @@ -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. diff --git a/Sming/third-party/spiffs b/Sming/third-party/spiffs index f5e26c4e93..ec68ba8208 160000 --- a/Sming/third-party/spiffs +++ b/Sming/third-party/spiffs @@ -1 +1 @@ -Subproject commit f5e26c4e933189593a71c6b82cda381a7b21e41c +Subproject commit ec68ba8208d7550860e4e78299d58a529b88bf85