• Benjamin Karic's avatar
    fix(adc): Always use default read resolution in __analogReadMilliVolts to... · b87d5257
    Benjamin Karic authored
    fix(adc): Always use default read resolution in __analogReadMilliVolts to obtain correct milliVolts value. (#9006)
    
    Add new __analogReadRaw function and move code from __analogRead without mapResolution part to __analogReadRaw.
    
    Refactor __anlogRead to use analogReadRaw (and mapResolution).
    
    Refactor __analogReadMilliVolts to always use default read resolution when reading adc value, as expected input by esp_adc_cal_raw_to_voltage is in default resolution (means replacing all calls of __analogRead with __analogReadRaw).
    b87d5257
esp32-hal-adc.c 9.43 KB