Skip to content

Fix build: restore global File alias hidden by TFT_eSPI's FS_NO_GLOBALS#2973

Open
weebl2000 wants to merge 1 commit into
meshcore-dev:devfrom
weebl2000:fix-build-file-import
Open

Fix build: restore global File alias hidden by TFT_eSPI's FS_NO_GLOBALS#2973
weebl2000 wants to merge 1 commit into
meshcore-dev:devfrom
weebl2000:fix-build-file-import

Conversation

@weebl2000

Copy link
Copy Markdown
Contributor

I noticed the build on dev was broken trying to build for heltec wireless tracker.

TFT_eSPI's default User_Setup.h enables SMOOTH_FONT, which makes it
define FS_NO_GLOBALS before including FS.h. Any TU that includes
ST7735Display.h before SPIFFS.h/FS.h (e.g. simple_repeater MyMesh.h via
target.h) then loses the global File/FS aliases and fails to compile.
Re-export the fs:: aliases right after including TFT_eSPI.h.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant