Unbreak build when SPIFFS_CACHE==0. (#2028)

This commit is contained in:
Johny Mattsson 2017-07-06 02:00:26 +10:00 committed by Marcel Stör
parent 0c315ed0ef
commit c01f653736
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,11 @@
#ifndef SPIFFS_CACHE_STATS
#define SPIFFS_CACHE_STATS 1
#endif
#else
// No SPIFFS_CACHE, also disable SPIFFS_CACHE_WR
#ifndef SPIFFS_CACHE_WR
#define SPIFFS_CACHE_WR 0
#endif
#endif
// Always check header of each accessed page to ensure consistent state.