Skip to content

Commit

Permalink
Do not enable features by default (betaflight#13608)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
haslinghuis authored May 21, 2024
1 parent 2a62782 commit 4ae4a06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ae4a06

Please sign in to comment.