Skip to content

Commit

Permalink
Unbreak build when SPIFFS_CACHE==0. (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johny Mattsson authored and marcelstoer committed Jul 5, 2017
1 parent 0c315ed commit c01f653
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/spiffs/spiffs_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c01f653

Please sign in to comment.