From dd3ca8336d226746ece7f6b822a3b7f0e99f9ce4 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Thu, 3 Oct 2024 22:31:14 +0200 Subject: [PATCH] [4.5.2] Fix build when using SRXL telemetry (#13947) (#13950) --- src/main/target/common_pre.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index c05d5b856d..b35d80332f 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -327,7 +327,7 @@ #define USE_THRUST_LINEARIZATION #define USE_TPA_MODE -#if defined(USE_SERIALRX_SPEKTRUM) || defined(USE_SERIALRX_SRXL2) +#ifdef USE_SERIALRX_SPEKTRUM #define USE_SPEKTRUM_BIND #define USE_SPEKTRUM_BIND_PLUG #define USE_SPEKTRUM_REAL_RSSI @@ -336,7 +336,16 @@ #define USE_SPEKTRUM_VTX_CONTROL #define USE_SPEKTRUM_VTX_TELEMETRY #define USE_SPEKTRUM_CMS_TELEMETRY -#endif // defined(USE_SERIALRX_SPEKTRUM) || defined USE_SERIALRX_SRXL2 +#endif // USE_SERIALRX_SPEKTRUM + +#ifdef USE_TELEMETRY_SRXL +#ifndef USE_SERIALRX_SPEKTRUM +#define USE_SERIALRX_SPEKTRUM +#define USE_SPEKTRUM_VTX_CONTROL +#define USE_SPEKTRUM_VTX_TELEMETRY +#define USE_SPEKTRUM_CMS_TELEMETRY +#endif // USE_SERIALRX_SPEKTRUM +#endif // USE_TELEMETRY_SRXL #define USE_BOARD_INFO #define USE_RTC_TIME