fix(gx12): switch warning screen not detecting switch movement (#7121)

This commit is contained in:
3djc
2026-02-23 06:55:10 +10:00
committed by GitHub
parent e301949335
commit 04d8027baa
+7 -1
View File
@@ -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;