mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ESP32: analog warning fix
This commit is contained in:
parent
809e15acf4
commit
b65313303f
|
@ -70,7 +70,7 @@ const AnalogIn::pin_info AnalogIn::pin_config[] = HAL_ESP32_ADC_PINS;
|
|||
#define DEFAULT_VREF 1100 //Use adc2_vref_to_gpio() to obtain a better estimate
|
||||
#define NO_OF_SAMPLES 256 //Multisampling
|
||||
|
||||
static const adc_atten_t atten = ADC_ATTEN_DB_11;
|
||||
static const adc_atten_t atten = ADC_ATTEN_DB_12;
|
||||
|
||||
//ardupin is the ardupilot assigned number, starting from 1-8(max)
|
||||
// 'pin' and _pin is a macro like 'ADC1_GPIO35_CHANNEL' from board config .h
|
||||
|
|
Loading…
Reference in New Issue