Skip to content

Commit

Permalink
Ensure NOFLASH builds don't use filename table
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Oct 23, 2024
1 parent 3ccbe05 commit ce15301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jsflash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce15301

Please sign in to comment.