From 19eca80d4ada8532f8c987494591640ee3e49e18 Mon Sep 17 00:00:00 2001 From: 3djc Date: Tue, 19 Jan 2021 09:01:00 +0100 Subject: [PATCH] Cosmetics --- radio/src/opentx.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index ed4a42d43..652c26409 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -268,7 +268,6 @@ void memswap(void * a, void * b, uint8_t size); #define IS_POT_AVAILABLE(x) (IS_POT(x) && POT_CONFIG(x)!=POT_NONE) #define IS_POT_SLIDER_AVAILABLE(x) (IS_POT_AVAILABLE(x) || IS_SLIDER_AVAILABLE(x)) #define IS_MULTIPOS_CALIBRATED(cal) (cal->count>0 && cal->count> (2*((x)-POT1)))&0x03) #define IS_POT_MULTIPOS(x) (IS_POT(x) && POT_CONFIG(x)==POT_MULTIPOS_SWITCH) @@ -276,12 +275,16 @@ void memswap(void * a, void * b, uint8_t size); #define IS_POT_AVAILABLE(x) (IS_POT(x) && POT_CONFIG(x)!=POT_NONE) #define IS_POT_SLIDER_AVAILABLE(x) (IS_POT_AVAILABLE(x)) #define IS_MULTIPOS_CALIBRATED(cal) (cal->count>0 && cal->count 0 + #define IS_SWITCH_MULTPOS(x) (SWSRC_FIRST_MULTIPOS_SWITCH <= (x) && (x) <= SWSRC_LAST_MULTIPOS_SWITCH) +#else #define IS_SWITCH_MULTPOS(x) (false) #endif