From eb1820f5bf8f59d0807543c0bc21c69233a8a297 Mon Sep 17 00:00:00 2001 From: jflyper Date: Fri, 26 Jan 2018 03:32:02 +0900 Subject: [PATCH] Enable in pre, check and disable in post. --- src/main/target/common_fc_post.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/target/common_fc_post.h b/src/main/target/common_fc_post.h index 02de4b4a77..c039966e3a 100644 --- a/src/main/target/common_fc_post.h +++ b/src/main/target/common_fc_post.h @@ -63,6 +63,17 @@ #endif #endif +// If USE_SERIALRX_SPEKTRUM was dropped by a target, drop all related options +#ifndef USE_SERIALRX_SPEKTRUM +#undef USE_SPEKTRUM_BIND +#undef USE_SPEKTRUM_BIND_PLUG +#undef USE_SPEKTRUM_REAL_RSSI +#undef USE_SPEKTRUM_FAKE_RSSI +#undef USE_SPEKTRUM_RSSI_PERCENT_CONVERSION +#undef USE_SPEKTRUM_VTX_CONTROL +#undef USE_SPEKTRUM_CMS_TELEMETRY +#endif + // undefine USE_ALT_HOLD if there is no baro or rangefinder to support it #if defined(USE_ALT_HOLD) && !defined(USE_BARO) && !defined(USE_RANGEFINDER) #undef USE_ALT_HOLD