1
0
Fork 0
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:
Mark Haslinghuis 2024-05-21 15:12:54 +02:00 committed by GitHub
parent 2a627829cc
commit 4ae4a06b16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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