From e0933e5de0039da2297349aca069d9eeade21223 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 2 Oct 2020 14:24:23 +0200 Subject: [PATCH] Fix scripter compilation error --- tasmota/xdrv_10_scripter.ino | 2 +- tasmota/xsns_02_analog.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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