From 2d581d2f8818f0efecb1fcd6cd0b10e780464d40 Mon Sep 17 00:00:00 2001 From: Kilrah Date: Mon, 30 Sep 2019 09:36:47 +0200 Subject: [PATCH] Fix building X10 after X12 --- radio/src/targets/horus/CMakeLists.txt | 1 + radio/src/targets/horus/board.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/targets/horus/CMakeLists.txt b/radio/src/targets/horus/CMakeLists.txt index 118426265..4a399531e 100644 --- a/radio/src/targets/horus/CMakeLists.txt +++ b/radio/src/targets/horus/CMakeLists.txt @@ -40,6 +40,7 @@ if (PCB STREQUAL X10) set(FONTS_TARGET x10_fonts) set(LCD_DRIVER lcd_driver.cpp) set(LUA_EXPORT lua_export_x10) + set(INTERNAL_GPS OFF) if (PCBREV STREQUAL EXPRESS) set(FLAVOUR x10express) option(INTERNAL_MODULE_PXX1 "Support for PXX1 internal module" OFF) diff --git a/radio/src/targets/horus/board.h b/radio/src/targets/horus/board.h index 13717068a..f1240fcd3 100644 --- a/radio/src/targets/horus/board.h +++ b/radio/src/targets/horus/board.h @@ -582,7 +582,7 @@ uint8_t gpsGetByte(uint8_t * byte); extern uint8_t gpsTraceEnabled; #endif void gpsSendByte(uint8_t byte); -#if defined(PCBX12S) +#if defined(INTERNAL_GPS) #define PILOTPOS_MIN_HDOP 500 #endif