Code updates to resolve build failures

This commit is contained in:
Jason P 2025-07-21 10:37:34 -05:00
parent 90385ab0cb
commit 436a3a6944
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

@ -905,7 +905,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);
@ -916,15 +916,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;