diff --git a/radio/src/opentx.h b/radio/src/opentx.h index 00f8200fb..7efae5d33 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -355,7 +355,7 @@ extern void boardInit(); #if defined(PCBTARANIS) && defined(REV9E) #define IS_SLIDER_AVAILABLE(x) ((x)==SLIDER1 || (x)==SLIDER2 || (g_eeGeneral.slidersConfig & (0x01 << ((x)-SLIDER3)))) - #define IS_POT_AVAILABLE(x) ((x)=SLIDER3 && IS_SLIDER_AVAILABLE(x))) + #define IS_POT_AVAILABLE(x) ((x)=SLIDER1 && IS_SLIDER_AVAILABLE(x))) #define IS_POT_MULTIPOS(x) ((x)>=POT1 && (x)<=POT_LAST && ((g_eeGeneral.potsConfig>>(2*((x)-POT1)))&0x03)==POT_MULTIPOS_SWITCH) #define IS_POT_WITHOUT_DETENT(x) ((x)>=POT1 && (x)<=POT_LAST && ((g_eeGeneral.potsConfig>>(2*((x)-POT1)))&0x03)==POT_WITHOUT_DETENT) #elif defined(PCBTARANIS) && defined(REVPLUS)