Revert "Hide templated GPIOs"

This reverts commit 4af4ff681d.
This commit is contained in:
Theo Arends 2019-02-14 11:13:47 +01:00
parent 4af4ff681d
commit 166a625eb8
1 changed files with 1 additions and 4 deletions

View File

@ -783,15 +783,12 @@ uint8_t ValidPin(uint8_t pin, uint8_t gpio)
bool ValidGPIO(uint8_t pin, uint8_t gpio)
{
bool result = false;
/*
if (USER_MODULE == Settings.module) {
result = (ValidPin(pin, gpio) > GPIO_NONE); // Allow any pin
} else {
result = (GPIO_USER == ValidPin(pin, gpio)); // Only allow GPIO_USER pins
}
*/
result = (GPIO_USER == ValidPin(pin, gpio)); // Only allow GPIO_USER pins
return result;
}