From ba7f6eee6f53566fb34fb902b480ff8f502ca92c Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Wed, 15 Mar 2023 22:50:50 +0100 Subject: [PATCH] CONFIG: Fix VTX feature (#12512) --- src/main/config/feature.h | 1 + src/main/target/common_post.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/main/config/feature.h b/src/main/config/feature.h index 397c6c8c48..312787b23e 100644 --- a/src/main/config/feature.h +++ b/src/main/config/feature.h @@ -59,6 +59,7 @@ typedef enum { FEATURE_CHANNEL_FORWARDING = 1 << 20, FEATURE_TRANSPONDER = 1 << 21, FEATURE_AIRMODE = 1 << 22, + FEATURE_VTX = 1 << 24, FEATURE_RX_SPI = 1 << 25, //FEATURE_SOFTSPI = 1 << 26, (removed) FEATURE_ESC_SENSOR = 1 << 27, diff --git a/src/main/target/common_post.h b/src/main/target/common_post.h index 9d6333b141..c3accccd18 100644 --- a/src/main/target/common_post.h +++ b/src/main/target/common_post.h @@ -333,6 +333,10 @@ #define USE_USB_ADVANCED_PROFILES #endif +#if defined(USE_VTX) && !defined(DEFAULT_FEATURES) +#define DEFAULT_FEATURES FEATURE_VTX +#endif + #if !defined(USE_OSD) #undef USE_RX_LINK_QUALITY_INFO #undef USE_OSD_PROFILES