mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 17:55:28 +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
|
@ -28,7 +28,7 @@
|
|||
#include "pitotmeter_adc.h"
|
||||
#include "adc.h"
|
||||
|
||||
#if defined(USE_PITOT_ADC)
|
||||
#if defined(USE_ADC) && defined(USE_PITOT_ADC)
|
||||
|
||||
/*
|
||||
* NXP MPXV7002DP differential pressure sensor
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ bool pitotDetect(pitotDev_t *dev, uint8_t pitotHardwareToUse)
|
|||
FALLTHROUGH;
|
||||
|
||||
case PITOT_ADC:
|
||||
#if defined(USE_PITOT_ADC)
|
||||
#if defined(USE_ADC) && defined(USE_PITOT_ADC)
|
||||
if (adcPitotDetect(dev)) {
|
||||
pitotHardware = PITOT_ADC;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue