From f0162377e20e9e22e9d5158b7c8acd19002d2927 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:26:21 +0100 Subject: [PATCH] Fix ESP32-C3 gpio hold Fix ESP32-C3 gpio hold on non-relay gpios (#20030) --- tasmota/tasmota_support/support.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_support/support.ino b/tasmota/tasmota_support/support.ino index af16da364..203ffb19d 100755 --- a/tasmota/tasmota_support/support.ino +++ b/tasmota/tasmota_support/support.ino @@ -1452,9 +1452,9 @@ void DigitalWrite(uint32_t gpio_pin, uint32_t index, uint32_t state) { if (PinUsed(gpio_pin, index)) { uint32_t pin = Pin(gpio_pin, index) & 0x3F; // Fix possible overflow over 63 gpios #ifdef CONFIG_IDF_TARGET_ESP32C3 - if (GPIO_REL1 == gpio_pin) { +// if (GPIO_REL1 == gpio_pin) { gpio_hold_dis((gpio_num_t)pin); // Allow state change - } +// } #endif if (!bitRead(pinmode_init[pin / 32], pin % 32)) { bitSet(pinmode_init[pin / 32], pin % 32);