mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Do not enable features by default (#13608)
* Do not enable features by default * Enable OSD by default if included * Enable OSD by default if included 2 * Fixes per review blckmn * Add gate * Only enable defined features * No need for DEFAULT_FEATURES predefine * No need for gating as we use featuresSupportedByBuild * Fixes per review from ledvinap
This commit is contained in:
parent
2a627829cc
commit
4ae4a06b16
1 changed files with 1 additions and 2 deletions
|
@ -421,8 +421,7 @@ static void validateAndFixConfig(void)
|
|||
if (systemConfig()->configurationState == CONFIGURATION_STATE_UNCONFIGURED) {
|
||||
// enable some compiled-in features by default
|
||||
uint32_t autoFeatures =
|
||||
FEATURE_DASHBOARD | FEATURE_LED_STRIP | FEATURE_OSD | FEATURE_RANGEFINDER
|
||||
| FEATURE_CHANNEL_FORWARDING | FEATURE_SERVO_TILT
|
||||
FEATURE_OSD | FEATURE_LED_STRIP
|
||||
#if defined(SOFTSERIAL1_RX_PIN) || defined(SOFTSERIAL2_RX_PIN) || defined(SOFTSERIAL1_TX_PIN) || defined(SOFTSERIAL2_TX_PIN)
|
||||
| FEATURE_SOFTSERIAL
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue