From 90372853d525f9a2c9c53f755449b8a9a58db500 Mon Sep 17 00:00:00 2001 From: philmoz Date: Tue, 6 Jan 2026 10:48:59 +1100 Subject: [PATCH] fix(color): radio Lua override settings for customisable switches not saved to yaml file (#6955) --- radio/src/gui/colorlcd/radio/radio_cfs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/src/gui/colorlcd/radio/radio_cfs.cpp b/radio/src/gui/colorlcd/radio/radio_cfs.cpp index e649b36c1..7b208ba4a 100644 --- a/radio/src/gui/colorlcd/radio/radio_cfs.cpp +++ b/radio/src/gui/colorlcd/radio/radio_cfs.cpp @@ -133,11 +133,11 @@ class RadioFunctionSwitch : public Window overrideLabel = new StaticText(this, {OVRLBL_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_LARGE, OVRLBL_W, 0}, STR_LUA_OVERRIDE, COLOR_THEME_PRIMARY1_INDEX, FONT(XS) | RIGHT); offOverride = new ToggleSwitch(this, {OVROFF_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_OUTLINE, 0, 0}, - [=]() { return g_model.cfsOffColorLuaOverride(switchIndex); }, - [=](bool v) { g_model.cfsSetOffColorLuaOverride(switchIndex, v); }); + [=]() { return g_eeGeneral.cfsOffColorLuaOverride(switchIndex); }, + [=](bool v) { g_eeGeneral.cfsSetOffColorLuaOverride(switchIndex, v); }); onOverride = new ToggleSwitch(this, {C2_X, C1_Y + EdgeTxStyles::UI_ELEMENT_HEIGHT + PAD_OUTLINE, 0, 0}, - [=]() { return g_model.cfsOnColorLuaOverride(switchIndex); }, - [=](bool v) { g_model.cfsSetOnColorLuaOverride(switchIndex, v); }); + [=]() { return g_eeGeneral.cfsOnColorLuaOverride(switchIndex); }, + [=](bool v) { g_eeGeneral.cfsSetOnColorLuaOverride(switchIndex, v); }); #endif //FUNCTION_SWITCHES_RGB_LEDS setState();