1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 09:45:33 +03:00

Fix buidling with FLASH_SIZE > 128 and without USE_ADC

This commit is contained in:
Michel Pastor 2018-04-17 15:18:32 +02:00
parent 9c02018094
commit 259eea41a5
3 changed files with 3 additions and 3 deletions

View file

@ -496,7 +496,7 @@ void init(void)
adc_params.adcFunctionChannel[ADC_CURRENT] = adcChannelConfig()->adcFunctionChannel[ADC_CURRENT];
}
#if defined(USE_PITOT) && defined(USE_PITOT_ADC)
#if defined(USE_PITOT) && defined(USE_ADC) && defined(USE_PITOT_ADC)
if (pitotmeterConfig()->pitot_hardware == PITOT_ADC || pitotmeterConfig()->pitot_hardware == PITOT_AUTODETECT) {
adc_params.adcFunctionChannel[ADC_AIRSPEED] = adcChannelConfig()->adcFunctionChannel[ADC_AIRSPEED];
}