diff --git a/TFT_eSPI/examples/FactoryTest/FactoryTest.ino b/TFT_eSPI/examples/FactoryTest/FactoryTest.ino index 832d161..35d0ec7 100644 --- a/TFT_eSPI/examples/FactoryTest/FactoryTest.ino +++ b/TFT_eSPI/examples/FactoryTest/FactoryTest.ino @@ -209,8 +209,7 @@ void setup() button_init(); esp_adc_cal_characteristics_t adc_chars; - esp_adc_cal_value_t val_type = esp_adc_cal_characterize((adc_unit_t)ADC_UNIT_1, (adc_atten_t)ADC1_CHANNEL_6, (adc_bits_width_t)ADC_WIDTH_BIT_12, 1100, &adc_chars); - //Check type of calibration value used to characterize ADC + esp_adc_cal_value_t val_type = esp_adc_cal_characterize(ADC_UNIT_1, ADC_ATTEN_DB_11, ADC_WIDTH_BIT_12, 1100, &adc_chars); //Check type of calibration value used to characterize ADC if (val_type == ESP_ADC_CAL_VAL_EFUSE_VREF) { Serial.printf("eFuse Vref:%u mV", adc_chars.vref); vref = adc_chars.vref;