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