From ce1530188009138381e776394d9e4aef7b4da890 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 23 Oct 2024 08:47:52 +0100 Subject: [PATCH] Ensure NOFLASH builds don't use filename table --- src/jsflash.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jsflash.h b/src/jsflash.h index 6afa7ffcdd..d497a20758 100644 --- a/src/jsflash.h +++ b/src/jsflash.h @@ -18,8 +18,10 @@ #ifdef BANGLEJS #define ESPR_NO_VARIMAGE // don't allow saving an image of current state to flash - no use on Bangle.js +#if FLASH_SAVED_CODE_START > 1000000 // saved code is in external flash (eg it's not a NOFLASH build) #define ESPR_STORAGE_FILENAME_TABLE // on non-Bangle.js boards without external flash this doesn't make much sense #endif +#endif #ifdef LINUX // for testing... #define ESPR_STORAGE_FILENAME_TABLE