Code updates to resolve build failures (#7406)

This commit is contained in:
Jason P
2025-07-21 10:47:43 -05:00
committed by vidplace7
parent 4e8fc620b1
commit 81f466c438
2 changed files with 10 additions and 4 deletions

View File

@@ -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

View File

@@ -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;