From 1bbf7b826ae7a18403e56fc33d680ce29222b8ef Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sun, 18 Jul 2021 15:00:11 +0200 Subject: [PATCH] Mark GPIOs 16 and 17 as read on ESP32, as they are used for PSRAM --- tasmota/support.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasmota/support.ino b/tasmota/support.ino index e85983807..a7fb0975c 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1632,8 +1632,14 @@ bool RedPin(uint32_t pin) // pin may be dangerous to change, display in RED in t #if defined(ESP32) && CONFIG_IDF_TARGET_ESP32C3 return false; // no red pin on ESP32C3 #else // ESP32 and ESP8266 + +#ifdef CONFIG_IDF_TARGET_ESP32 + return (16==pin)||(17==pin)||(9==pin)||(10==pin); +#else return (9==pin)||(10==pin); #endif + +#endif } uint32_t ValidPin(uint32_t pin, uint32_t gpio) {