mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Added adc, beeper, sonar, and ledStrip config() macros
This commit is contained in:
parent
e89f0a0299
commit
57a9393f5f
5 changed files with 30 additions and 26 deletions
|
@ -377,9 +377,9 @@ void init(void)
|
|||
|
||||
#ifdef USE_ADC
|
||||
/* these can be removed from features! */
|
||||
masterConfig.adcConfig.vbat.enabled = feature(FEATURE_VBAT);
|
||||
masterConfig.adcConfig.currentMeter.enabled = feature(FEATURE_CURRENT_METER);
|
||||
masterConfig.adcConfig.rssi.enabled = feature(FEATURE_RSSI_ADC);
|
||||
adcConfig()->vbat.enabled = feature(FEATURE_VBAT);
|
||||
adcConfig()->currentMeter.enabled = feature(FEATURE_CURRENT_METER);
|
||||
adcConfig()->rssi.enabled = feature(FEATURE_RSSI_ADC);
|
||||
adcInit(&masterConfig.adcConfig);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue