From 04d8027baa196ad191b1e43c76e668b1b559279b Mon Sep 17 00:00:00 2001 From: 3djc <5167938+3djc@users.noreply.github.com> Date: Sun, 22 Feb 2026 21:55:10 +0100 Subject: [PATCH] fix(gx12): switch warning screen not detecting switch movement (#7121) --- radio/src/switches.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/radio/src/switches.cpp b/radio/src/switches.cpp index d202e37dd..69ddb9a4d 100644 --- a/radio/src/switches.cpp +++ b/radio/src/switches.cpp @@ -32,6 +32,10 @@ #include "inactivity_timer.h" #include "tasks/mixer_task.h" +#if defined(RADIO_GX12) +#include "targets/taranis/gx12/bsp_io.h" +#endif + #define CS_LAST_VALUE_INIT -32768 #if defined(COLORLCD) @@ -913,7 +917,9 @@ void checkSwitches() #endif while (true) { - +#if defined(RADIO_GX12) + _poll_switches(); +#endif if (!isSwitchWarningRequired(bad_pots)) break;