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.

@weebl2000

Copy link
Copy Markdown
Contributor Author

@liamcottle This fixes the build for all devices using ST7735 displays. dev branch currently will not build.

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.
@weebl2000
weebl2000 force-pushed the fix-build-file-import branch from 66b4e31 to 4f3082a Compare July 22, 2026 12:27
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