mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-20 03:52:39 +00:00
Fix crash in simulator mode
This commit is contained in:
parent
df2f70df8f
commit
52feb9c98d
@ -979,10 +979,10 @@ void Screen::setFrames(FrameFocus focus)
|
|||||||
fsi.positions.gps = numframes;
|
fsi.positions.gps = numframes;
|
||||||
normalFrames[numframes++] = graphics::UIRenderer::drawCompassAndLocationScreen;
|
normalFrames[numframes++] = graphics::UIRenderer::drawCompassAndLocationScreen;
|
||||||
indicatorIcons.push_back(icon_compass);
|
indicatorIcons.push_back(icon_compass);
|
||||||
|
if (RadioLibInterface::instance) {
|
||||||
normalFrames[numframes++] = graphics::DebugRenderer::drawLoRaFocused;
|
normalFrames[numframes++] = graphics::DebugRenderer::drawLoRaFocused;
|
||||||
indicatorIcons.push_back(icon_radio);
|
indicatorIcons.push_back(icon_radio);
|
||||||
|
}
|
||||||
if (!dismissedFrames.memory) {
|
if (!dismissedFrames.memory) {
|
||||||
fsi.positions.memory = numframes;
|
fsi.positions.memory = numframes;
|
||||||
normalFrames[numframes++] = graphics::DebugRenderer::drawMemoryUsage;
|
normalFrames[numframes++] = graphics::DebugRenderer::drawMemoryUsage;
|
||||||
|
Loading…
Reference in New Issue
Block a user