From d9be488885cfee351be15c0cf7fea7e429759629 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 29 Dec 2022 16:10:41 +0100 Subject: [PATCH] Update comments --- tasmota/tasmota_support/support_esp.ino | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tasmota/tasmota_support/support_esp.ino b/tasmota/tasmota_support/support_esp.ino index b272e852b..699b13208 100644 --- a/tasmota/tasmota_support/support_esp.ino +++ b/tasmota/tasmota_support/support_esp.ino @@ -34,21 +34,23 @@ extern struct rst_info resetInfo; } /*********************************************************************************************\ - * Core overrides executed directly by core + * Core overrides executed by core \*********************************************************************************************/ // Add below line to tasmota_globals.h // extern "C" void resetPins(); -// This function is executed by core init() (as initPins()) in core_esp8266_wiring.cpp -// 20221229 - Re-enabled with additional check to execute on power on only fixing short relay power on/off -// 20?????? - Disabled for unknown reason +// +// This function overrules __resetPins() which is executed by core init() as initPins() in core_esp8266_wiring.cpp +// +// 20221229 - (v12.3.1.2) Enabled with additional check to execute on power on only to fix relay clicks on power on +// 20200321 - (v8.2.0.1) Disable core functionality to fix relay clicks on restart after OTA - make function return without setting pinMode void resetPins() { if ((resetInfo.reason == REASON_DEFAULT_RST) || (resetInfo.reason == REASON_EXT_SYS_RST)) { // Only perform at power on for (int i = 0; i <= 5; ++i) { pinMode(i, INPUT); } - // pins 6-11 are used for the SPI flash interface + // pins 6-11 are used for the SPI flash interface ESP8266 for (int i = 12; i <= 16; ++i) { pinMode(i, INPUT); }