From c1efaf56c8c91919bb0b392026ed795f35dc6000 Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 30 Oct 2022 00:03:13 +0200 Subject: [PATCH] Fix GPS in Cloud build --- src/main/target/common_post.h | 4 ---- src/main/target/common_pre.h | 6 ++++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/target/common_post.h b/src/main/target/common_post.h index 748e5c1d07..bce394873d 100644 --- a/src/main/target/common_post.h +++ b/src/main/target/common_post.h @@ -243,10 +243,6 @@ #undef USE_RX_LINK_UPLINK_POWER #endif -#if defined(USE_GPS_RESCUE) -#define USE_GPS -#endif - // Generate USE_SPI_GYRO or USE_I2C_GYRO #if defined(USE_GYRO_L3G4200D) || defined(USE_GYRO_MPU3050) || defined(USE_GYRO_MPU6000) || defined(USE_GYRO_MPU6050) || defined(USE_GYRO_MPU6500) #define USE_I2C_GYRO diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index 67da45fcac..88cca17ca1 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -406,11 +406,13 @@ extern uint8_t _dmaram_end__; #define USE_SERIALRX_SRXL2 // Spektrum SRXL2 protocol #define USE_GPS +#define USE_OSD +#endif + +#ifdef USE_GPS #define USE_GPS_NMEA #define USE_GPS_UBLOX #define USE_GPS_RESCUE - -#define USE_OSD #endif #ifdef USE_OSD