From 90ebc1a8be00e6bf6b810a95bda611aa49526a83 Mon Sep 17 00:00:00 2001 From: 3djc Date: Wed, 28 Feb 2018 12:58:55 +0100 Subject: [PATCH] AVR compilation fix --- radio/src/opentx.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radio/src/opentx.h b/radio/src/opentx.h index 8a24314f8..a748ced3f 100644 --- a/radio/src/opentx.h +++ b/radio/src/opentx.h @@ -231,7 +231,11 @@ #define IF_FAI_CHOICE(x) #endif -#define IS_FAI_FORBIDDEN(idx) (IS_FAI_ENABLED() && isFaiForbidden(idx)) +#if defined(CPUARM) + #define IS_FAI_FORBIDDEN(idx) (IS_FAI_ENABLED() && isFaiForbidden(idx)) +#else + #define IS_FAI_FORBIDDEN(idx) (IS_FAI_ENABLED() && idx >= MIXSRC_FIRST_TELEM) +#endif #if defined(BLUETOOTH) #if defined(X9E) && !defined(USEHORUSBT)