AP_HAL_ESP32: analog warning fix

This commit is contained in:
David Buzz 2024-01-08 10:46:07 +10:00 committed by Peter Barker
parent 809e15acf4
commit b65313303f

View File

@ -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 DEFAULT_VREF 1100 //Use adc2_vref_to_gpio() to obtain a better estimate
#define NO_OF_SAMPLES 256 //Multisampling #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) //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 // 'pin' and _pin is a macro like 'ADC1_GPIO35_CHANNEL' from board config .h