Skip to content

Commit

Permalink
Allow custom SPIFFS location in "demons" part of user_config.h
Browse files Browse the repository at this point in the history
In case a custom SPIFFS location was defined above, don't overwrite it.
  • Loading branch information
mk-pmb authored and nwf committed Aug 23, 2020
1 parent a92da3c commit 64ece47
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/include/user_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

// The net module optionally offers net info functionnality. Uncomment the following
// to enable the functionnality.
#define NET_PING_ENABLE
#define NET_PING_ENABLE

// The WiFi module optionally offers an enhanced level of WiFi connection
// management, using internal timer callbacks. Whilst many Lua developers
Expand Down Expand Up @@ -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
Expand All @@ -252,7 +256,7 @@
#define READLINE_INTERVAL 80
#define STRBUF_DEFAULT_INCREMENT 3
#define LUA_USE_BUILTIN_DEBUG_MINIMAL // for debug.getregistry() and debug.traceback()

#if defined(DEVELOPMENT_TOOLS) && defined(DEVELOPMENT_USE_GDB)
extern void LUA_DEBUG_HOOK (void);
#define lua_assert(x) ((x) ? (void) 0 : LUA_DEBUG_HOOK ())
Expand Down

0 comments on commit 64ece47

Please sign in to comment.