From 0e684058e449a3d67e4b0f9276ddf1703ca60302 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 18 Apr 2021 09:04:26 +0200 Subject: [PATCH] Make compiler happy (packed structs are a pain....) --- radio/src/gui/colorlcd/screen_setup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/gui/colorlcd/screen_setup.cpp b/radio/src/gui/colorlcd/screen_setup.cpp index a7944bbdc..ed43571f9 100644 --- a/radio/src/gui/colorlcd/screen_setup.cpp +++ b/radio/src/gui/colorlcd/screen_setup.cpp @@ -365,8 +365,8 @@ static void updateLayoutOptions(FormGroup* optionsWindow, unsigned customScreenI for (auto * option = factory->getOptions(); option->name; option++, index++) { - auto& layoutData = g_model.screenData[customScreenIndex].layoutData; - ZoneOptionValue * value = &layoutData.options[index].value; + auto layoutData = &g_model.screenData[customScreenIndex].layoutData; + ZoneOptionValue * value = &layoutData->options[index].value; // Option label new StaticText(optionsWindow, grid.getLabelSlot(false), option->name);