From fd138cf22af0a5d3c4df020b018c0c4938b75744 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sun, 4 Sep 2016 22:27:36 +0200 Subject: [PATCH] [X7D] Compilation fix --- radio/src/opentx.h | 14 +++++++------- tools/commit-tests.sh | 23 +++++++++++++++-------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index ae2658ee1..e230df815 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -298,24 +298,24 @@ void memswap(void * a, void * b, uint8_t size); -#if defined(PCBTARANIS) || defined(PCBHORUS) +#if defined(PCBX9D) || defined(PCBX9DP) || defined(PCBX9E) || defined(PCBHORUS) #define POT_CONFIG(x) ((g_eeGeneral.potsConfig >> (2*((x)-POT1)))&0x03) #define IS_POT_MULTIPOS(x) (IS_POT(x) && POT_CONFIG(x)==POT_MULTIPOS_SWITCH) #define IS_POT_WITHOUT_DETENT(x) (IS_POT(x) && POT_CONFIG(x)==POT_WITHOUT_DETENT) #define IS_SLIDER_AVAILABLE(x) ((x) == SLIDER1 || (x) == SLIDER2 || (IS_SLIDER(x) && (g_eeGeneral.slidersConfig & (0x01 << ((x)-SLIDER1))))) #define IS_POT_AVAILABLE(x) (IS_POT(x) && POT_CONFIG(x)!=POT_NONE) - #define IS_POT_OR_SLIDER_AVAILABLE(x) (IS_POT_AVAILABLE(x) || IS_SLIDER_AVAILABLE(x)) - #define IS_MULTIPOS_CALIBRATED(cal) (cal->count>0 && cal->countcount>0 && cal->count