1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Enable in pre, check and disable in post.

This commit is contained in:
jflyper 2018-01-26 03:32:02 +09:00
parent 06326c8b69
commit eb1820f5bf

View file

@ -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