HAL_Linux: add HAL_ prefix to GPIO_INPUT

This commit is contained in:
Siddharth Bharat Purohit 2014-06-04 22:48:10 +05:30 committed by Andrew Tridgell
parent 1f1af0b0ea
commit d2b5a1cfac

View File

@ -66,7 +66,7 @@ void LinuxGPIO::pinMode(uint8_t pin, uint8_t output)
hal.scheduler->panic("invalid pin number");
return;
}
if (output == GPIO_INPUT) {
if (output == HAL_GPIO_INPUT) {
*gpio_bank[bank].oe |= (1U<<bankpin);
} else {
*gpio_bank[bank].oe &= ~(1U<<bankpin);