Skip to content

Commit c01f653

Browse files
Johny Mattssonmarcelstoer
authored andcommitted
Unbreak build when SPIFFS_CACHE==0. (#2028)
1 parent 0c315ed commit c01f653

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/spiffs/spiffs_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@
9191
#ifndef SPIFFS_CACHE_STATS
9292
#define SPIFFS_CACHE_STATS 1
9393
#endif
94+
#else
95+
// No SPIFFS_CACHE, also disable SPIFFS_CACHE_WR
96+
#ifndef SPIFFS_CACHE_WR
97+
#define SPIFFS_CACHE_WR 0
98+
#endif
9499
#endif
95100

96101
// Always check header of each accessed page to ensure consistent state.

0 commit comments

Comments
 (0)