Fixed build errors on targets with no defined ADC pins
This commit is contained in:
parent
17facbea84
commit
1565d3aab6
|
@ -80,10 +80,6 @@ const adcTagMap_t adcTagMap[] = {
|
|||
void adcInit(adcConfig_t *config)
|
||||
{
|
||||
|
||||
#if !defined(VBAT_ADC_PIN) && !defined(EXTERNAL1_ADC_PIN) && !defined(RSSI_ADC_PIN) && !defined(CURRENT_METER_ADC_PIN)
|
||||
UNUSED(init);
|
||||
#endif
|
||||
|
||||
uint8_t configuredAdcChannels = 0;
|
||||
|
||||
memset(&adcOperatingConfig, 0, sizeof(adcOperatingConfig));
|
||||
|
|
|
@ -93,10 +93,6 @@ void adcInit(adcConfig_t *config)
|
|||
|
||||
memset(&adcOperatingConfig, 0, sizeof(adcOperatingConfig));
|
||||
|
||||
#if !defined(VBAT_ADC_PIN) && !defined(EXTERNAL1_ADC_PIN) && !defined(RSSI_ADC_PIN) && !defined(CURRENT_METER_ADC_PIN)
|
||||
UNUSED(init);
|
||||
#endif
|
||||
|
||||
if (config->vbat.enabled) {
|
||||
adcOperatingConfig[ADC_BATTERY].tag = config->vbat.ioTag;
|
||||
}
|
||||
|
|
|
@ -93,10 +93,6 @@ void adcInit(adcConfig_t *config)
|
|||
|
||||
memset(&adcOperatingConfig, 0, sizeof(adcOperatingConfig));
|
||||
|
||||
#if !defined(VBAT_ADC_PIN) && !defined(EXTERNAL1_ADC_PIN) && !defined(RSSI_ADC_PIN) && !defined(CURRENT_METER_ADC_PIN)
|
||||
UNUSED(init);
|
||||
#endif
|
||||
|
||||
if (config->vbat.enabled) {
|
||||
adcOperatingConfig[ADC_BATTERY].tag = config->vbat.ioTag;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue