Some adjustments

This commit is contained in:
Gunnar Skjold 2022-06-23 20:03:29 +02:00
parent 55f1b4b129
commit a5d1a2c0ee

View File

@ -17,11 +17,11 @@ void HwTools::setup(GpioConfig* config, AmsConfiguration* amsConf) {
#if defined(CONFIG_IDF_TARGET_ESP32S2)
analogReadResolution(13);
analogRange = 8192;
//analogSetAttenuation(ADC_11db);
analogSetAttenuation(ADC_11db);
#elif defined(ESP32)
analogReadResolution(12);
analogRange = 4096;
//analogSetAttenuation(ADC_11db);
analogSetAttenuation(ADC_6db);
#endif
if(config->vccPin > 0 && config->vccPin < 40) {
#if defined(CONFIG_IDF_TARGET_ESP32S2)