From a3444af03c679bd4bdbe39d165f3d6ab5b8b0f23 Mon Sep 17 00:00:00 2001 From: 3djc Date: Wed, 19 Jun 2024 03:50:21 +0200 Subject: [PATCH] fix: allow selection of flex axis as a source (#5195) --- radio/src/opentx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index 003c485f5..2522b2540 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -129,7 +129,7 @@ void memswap(void * a, void * b, uint8_t size); #define IS_SLIDER(x) (POT_CONFIG(x) == FLEX_SLIDER) #define IS_POT_AVAILABLE(x) \ - (POT_CONFIG(x) != FLEX_NONE && POT_CONFIG(x) <= FLEX_MULTIPOS) + (POT_CONFIG(x) != FLEX_NONE && POT_CONFIG(x) < FLEX_SWITCH) #define IS_POT_SLIDER_AVAILABLE(x) (IS_POT_AVAILABLE(x))