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:
parent
9c02018094
commit
259eea41a5
3 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue