mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-19 23:45:28 +02:00
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12
By design, it's 12 dB. There're errors among chips, so the actual attenuation will be 11dB more or less
This commit is contained in:
@@ -27,7 +27,7 @@ Don't put any other code into this file. */
|
||||
static __attribute__((constructor)) void adc2_init_code_calibration(void)
|
||||
{
|
||||
const adc_ll_num_t adc_n = ADC_NUM_2;
|
||||
const adc_atten_t atten = ADC_ATTEN_DB_11;
|
||||
const adc_atten_t atten = ADC_ATTEN_DB_12;
|
||||
const adc_channel_t channel = 0;
|
||||
adc_cal_offset(adc_n, channel, atten);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user