From 81f466c438109dd6bb3ab65941b75ed2639fc7fc Mon Sep 17 00:00:00 2001 From: Jason P Date: Mon, 21 Jul 2025 10:47:43 -0500 Subject: [PATCH] Code updates to resolve build failures (#7406) --- src/graphics/BRC.cpp | 4 ++++ src/graphics/Screen.cpp | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/graphics/BRC.cpp b/src/graphics/BRC.cpp index a65a8ee7c..8a87217d4 100644 --- a/src/graphics/BRC.cpp +++ b/src/graphics/BRC.cpp @@ -3,6 +3,8 @@ #include "gps/GeoCoord.h" #include "graphics/Screen.h" +#if HAS_SCREEN + using namespace meshtastic; const int32_t BRC_LATI = (40.786958 * 1e7); @@ -150,3 +152,5 @@ int BRCAddress::compact(char *buf, size_t len) buf[l] = 0; // always null terminated return l; }; + +#endif \ No newline at end of file diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index b87cde62e..af1ed6514 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -907,7 +907,7 @@ void Screen::setFrames(FrameFocus focus) // Show detailed node views only on E-Ink builds #ifdef USE_EINK - fsi.positions.nodelist_bearings = numframes; + fsi.positions.nodelist_lastheard = numframes; normalFrames[numframes++] = graphics::NodeListRenderer::drawLastHeardScreen; indicatorIcons.push_back(icon_nodes); @@ -918,15 +918,17 @@ void Screen::setFrames(FrameFocus focus) fsi.positions.nodelist_distance = numframes; normalFrames[numframes++] = graphics::NodeListRenderer::drawDistanceScreen; indicatorIcons.push_back(icon_distance); - +#endif +#if HAS_GPS fsi.positions.nodelist_bearings = numframes; normalFrames[numframes++] = graphics::NodeListRenderer::drawNodeListWithCompasses; indicatorIcons.push_back(icon_list); -#endif -#if HAS_GPS + +#if HAS_SCREEN fsi.positions.nodelist_brc = numframes; normalFrames[numframes++] = graphics::NodeListRenderer::drawBRCList; indicatorIcons.push_back(icon_bm); +#endif fsi.positions.gps = numframes; normalFrames[numframes++] = graphics::UIRenderer::drawCompassAndLocationScreen;