From 5a1d2b9ef4cb4d73518e3194719280336fee073e Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 13 May 2026 10:52:05 -0500 Subject: [PATCH] Refine nRF52 flash optimization comment for FONT_LARGE_LOCAL definition --- src/graphics/ScreenFonts.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/graphics/ScreenFonts.h b/src/graphics/ScreenFonts.h index bac92b2b0..82ceb5406 100644 --- a/src/graphics/ScreenFonts.h +++ b/src/graphics/ScreenFonts.h @@ -91,8 +91,9 @@ // nRF52 flash optimization: re-route FONT_LARGE_LOCAL to the 16pt glyph so // the display-tier dispatch below picks up 16pt everywhere it would have used // 24pt. Drops the ~9.6 KB ArialMT_Plain_24 table from the linked binary. -// Set MESHTASTIC_LARGE_FONT_24PT=1 in build_flags to opt out per variant. -#if defined(ARCH_NRF52) && !defined(MESHTASTIC_LARGE_FONT_24PT) +// Set MESHTASTIC_LARGE_FONT_24PT=1 in build_flags to opt out per variant +// (undefined or 0 keeps the optimization on). +#if defined(ARCH_NRF52) && (!defined(MESHTASTIC_LARGE_FONT_24PT) || MESHTASTIC_LARGE_FONT_24PT == 0) #undef FONT_LARGE_LOCAL #define FONT_LARGE_LOCAL FONT_MEDIUM_LOCAL #endif