diff --git a/tasmota/xdrv_10_scripter.ino b/tasmota/xdrv_10_scripter.ino index 8f5181914..a3cba3385 100755 --- a/tasmota/xdrv_10_scripter.ino +++ b/tasmota/xdrv_10_scripter.ino @@ -1796,7 +1796,7 @@ chknext: #else // ESP8266 #ifndef USE_ADC_VCC - fvar = AdcRead(fvar); + fvar = AdcRead(17, fvar); #else fvar = (float)ESP.getVcc() / 1000.0; #endif // USE_ADC_VCC diff --git a/tasmota/xsns_02_analog.ino b/tasmota/xsns_02_analog.ino index 1077026de..8feca385e 100644 --- a/tasmota/xsns_02_analog.ino +++ b/tasmota/xsns_02_analog.ino @@ -19,7 +19,7 @@ #ifdef USE_ADC /*********************************************************************************************\ - * ADC support for up to 8 channels on GPIO32 to GPIO39 + * ADC support for ESP8266 GPIO17 (=PIN_A0) and ESP32 up to 8 channels on GPIO32 to GPIO39 \*********************************************************************************************/ #define XSNS_02 2