Allow custom SPIFFS location in "demons" part of user_config.h

In case a custom SPIFFS location was defined above, don't overwrite it.
This commit is contained in:
mk-pmb 2020-08-22 01:46:21 +02:00 committed by Nathaniel Wesley Filardo
parent a92da3c33c
commit 64ece47ff6
1 changed files with 7 additions and 3 deletions

View File

@ -239,7 +239,11 @@
# define LUA_FLASH_STORE 0x0
#endif
#define SPIFFS_FIXED_LOCATION 0x0
#ifndef SPIFFS_FIXED_LOCATION
#define SPIFFS_FIXED_LOCATION 0x0
// You'll rarely need to customize this, because nowadays
// it's usually overruled by the partition table anyway.
#endif
#ifndef SPIFFS_MAX_FILESYSTEM_SIZE
# define SPIFFS_MAX_FILESYSTEM_SIZE 0xFFFFFFFF
#endif