From 2887fcfef6b456aa52bdf77cfadb3cc020b09817 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 3 Jun 2018 21:06:05 +0200 Subject: [PATCH] adread.cpp bugfix --- src/adcread.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/adcread.cpp b/src/adcread.cpp index 04b51dda..1dc46776 100644 --- a/src/adcread.cpp +++ b/src/adcread.cpp @@ -11,18 +11,16 @@ // Local logging tag static const char TAG[] = "main"; -#ifdef VERBOSE - static void print_char_val_type(esp_adc_cal_value_t val_type) - { - if (val_type == ESP_ADC_CAL_VAL_EFUSE_TP) { - ESP_LOGI(TAG,"ADC characterization based on Two Point values stored in eFuse"); - } else if (val_type == ESP_ADC_CAL_VAL_EFUSE_VREF) { - ESP_LOGI(TAG,"ADC characterization based on reference voltage stored in eFuse"); - } else { - ESP_LOGI(TAG,"ADC characterization based on default reference voltage"); - } +static void print_char_val_type(esp_adc_cal_value_t val_type) +{ + if (val_type == ESP_ADC_CAL_VAL_EFUSE_TP) { + ESP_LOGI(TAG,"ADC characterization based on Two Point values stored in eFuse"); + } else if (val_type == ESP_ADC_CAL_VAL_EFUSE_VREF) { + ESP_LOGI(TAG,"ADC characterization based on reference voltage stored in eFuse"); + } else { + ESP_LOGI(TAG,"ADC characterization based on default reference voltage"); } -#endif +} uint16_t read_voltage(void) {