mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Revert "Hide templated GPIOs"
This reverts commit 4af4ff681d99790ac12634b413928d4905c98efd.
This commit is contained in:
parent
4af4ff681d
commit
166a625eb8
@ -783,15 +783,12 @@ uint8_t ValidPin(uint8_t pin, uint8_t gpio)
|
|||||||
bool ValidGPIO(uint8_t pin, uint8_t gpio)
|
bool ValidGPIO(uint8_t pin, uint8_t gpio)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
/*
|
|
||||||
if (USER_MODULE == Settings.module) {
|
if (USER_MODULE == Settings.module) {
|
||||||
result = (ValidPin(pin, gpio) > GPIO_NONE); // Allow any pin
|
result = (ValidPin(pin, gpio) > GPIO_NONE); // Allow any pin
|
||||||
} else {
|
} else {
|
||||||
result = (GPIO_USER == ValidPin(pin, gpio)); // Only allow GPIO_USER pins
|
result = (GPIO_USER == ValidPin(pin, gpio)); // Only allow GPIO_USER pins
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
result = (GPIO_USER == ValidPin(pin, gpio)); // Only allow GPIO_USER pins
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user