mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 08:46:34 +00:00
fix isReadOnlyPin() logic
This commit is contained in:
parent
81e412fe5b
commit
f16ed4697f
@ -270,7 +270,7 @@ bool PinManagerClass::isPinOk(byte gpio, bool output) const
|
|||||||
bool PinManagerClass::isReadOnlyPin(byte gpio)
|
bool PinManagerClass::isReadOnlyPin(byte gpio)
|
||||||
{
|
{
|
||||||
#ifdef ARDUINO_ARCH_ESP32
|
#ifdef ARDUINO_ARCH_ESP32
|
||||||
if (gpio < WLED_NUM_PINS) return digitalPinCanOutput(gpio);
|
if (gpio < WLED_NUM_PINS) return (digitalPinIsValid(gpio) && !digitalPinCanOutput(gpio));
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user