Fix crash in simulator mode

This commit is contained in:
Jonathan Bennett 2025-06-12 16:52:42 -05:00
parent df2f70df8f
commit 52feb9c98d

View File

@ -979,10 +979,10 @@ void Screen::setFrames(FrameFocus focus)
fsi.positions.gps = numframes;
normalFrames[numframes++] = graphics::UIRenderer::drawCompassAndLocationScreen;
indicatorIcons.push_back(icon_compass);
normalFrames[numframes++] = graphics::DebugRenderer::drawLoRaFocused;
indicatorIcons.push_back(icon_radio);
if (RadioLibInterface::instance) {
normalFrames[numframes++] = graphics::DebugRenderer::drawLoRaFocused;
indicatorIcons.push_back(icon_radio);
}
if (!dismissedFrames.memory) {
fsi.positions.memory = numframes;
normalFrames[numframes++] = graphics::DebugRenderer::drawMemoryUsage;