From 9cd44cf1cbfe302dea06e075197e929689525c1a Mon Sep 17 00:00:00 2001 From: philmoz Date: Tue, 4 Nov 2025 14:05:06 +1100 Subject: [PATCH] fix(gx12): custom function switch LED state may be incorrect (#6763) --- radio/src/gui/128x64/model_setup.cpp | 1 + radio/src/gui/common/stdlcd/radio_hardware.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/radio/src/gui/128x64/model_setup.cpp b/radio/src/gui/128x64/model_setup.cpp index b4f594675..e9bc4c4fb 100644 --- a/radio/src/gui/128x64/model_setup.cpp +++ b/radio/src/gui/128x64/model_setup.cpp @@ -718,6 +718,7 @@ static void menuModelCFSOne(event_t event) fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0); #endif } else if (config == SWITCH_TOGGLE) { + setFSLogicalState(swIndex, 0); g_model.cfsSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position } } diff --git a/radio/src/gui/common/stdlcd/radio_hardware.cpp b/radio/src/gui/common/stdlcd/radio_hardware.cpp index f0b0fbc2a..7c3c6c09c 100644 --- a/radio/src/gui/common/stdlcd/radio_hardware.cpp +++ b/radio/src/gui/common/stdlcd/radio_hardware.cpp @@ -198,6 +198,7 @@ static void menuRadioCFSOne(event_t event) fsLedRGB(switchGetCustomSwitchIdx(swIndex), 0); #endif } else if (config == SWITCH_TOGGLE) { + setFSLogicalState(swIndex, 0); g_eeGeneral.switchSetStart(swIndex, FS_START_PREVIOUS); // Toggle switches do not have startup position } }