mirror of https://github.com/arendst/Tasmota.git
Fix SO51
This commit is contained in:
parent
9153ba37ca
commit
ad831418e5
|
@ -1716,17 +1716,7 @@ uint32_t ValidPin(uint32_t pin, uint32_t gpio, uint8_t isTuya = false) {
|
|||
return GPIO_NONE; // Disable flash pins GPIO6, GPIO7, GPIO8 and GPIO11
|
||||
}
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32C2
|
||||
// ignore
|
||||
#elif CONFIG_IDF_TARGET_ESP32C3
|
||||
// ignore
|
||||
#elif CONFIG_IDF_TARGET_ESP32C6
|
||||
// ignore
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
// ignore
|
||||
#elif CONFIG_IDF_TARGET_ESP32
|
||||
// ignore
|
||||
#else // not ESP32C3 and not ESP32S2
|
||||
#ifdef ESP8266
|
||||
if (((WEMOS == Settings->module) || isTuya) && !Settings->flag3.user_esp8285_enable) { // SetOption51 - Enable ESP8285 user GPIO's
|
||||
if ((9 == pin) || (10 == pin)) {
|
||||
return GPIO_NONE; // Disable possible flash GPIO9 and GPIO10
|
||||
|
|
Loading…
Reference in New Issue