mirror of https://github.com/arendst/Tasmota.git
Mark GPIOs 16 and 17 as read on ESP32, as they are used for PSRAM
This commit is contained in:
parent
4173340c6a
commit
1bbf7b826a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue