mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #5035 from jflyper/bfdev-improve-conditional-for-spektrumBind
Improve conditional handling for USE_SPEKTRUM_xxx
This commit is contained in:
commit
0b08a3ae76
1 changed files with 11 additions and 0 deletions
|
@ -63,6 +63,17 @@
|
||||||
#endif
|
#endif
|
||||||
#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
|
// 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)
|
#if defined(USE_ALT_HOLD) && !defined(USE_BARO) && !defined(USE_RANGEFINDER)
|
||||||
#undef USE_ALT_HOLD
|
#undef USE_ALT_HOLD
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue