adread.cpp bugfix

This commit is contained in:
Klaus K Wilting 2018-06-03 21:06:05 +02:00
parent 34cdbdd5b1
commit 2887fcfef6

View File

@ -11,9 +11,8 @@
// Local logging tag // Local logging tag
static const char TAG[] = "main"; static const char TAG[] = "main";
#ifdef VERBOSE static void print_char_val_type(esp_adc_cal_value_t val_type)
static void print_char_val_type(esp_adc_cal_value_t val_type) {
{
if (val_type == ESP_ADC_CAL_VAL_EFUSE_TP) { if (val_type == ESP_ADC_CAL_VAL_EFUSE_TP) {
ESP_LOGI(TAG,"ADC characterization based on Two Point values stored in eFuse"); ESP_LOGI(TAG,"ADC characterization based on Two Point values stored in eFuse");
} else if (val_type == ESP_ADC_CAL_VAL_EFUSE_VREF) { } else if (val_type == ESP_ADC_CAL_VAL_EFUSE_VREF) {
@ -21,8 +20,7 @@ static const char TAG[] = "main";
} else { } else {
ESP_LOGI(TAG,"ADC characterization based on default reference voltage"); ESP_LOGI(TAG,"ADC characterization based on default reference voltage");
} }
} }
#endif
uint16_t read_voltage(void) uint16_t read_voltage(void)
{ {