fix gpio_open

This commit is contained in:
Thomas Klaehn 2019-07-25 09:51:14 +01:00
parent 47bb25c9d3
commit 72d25c5f59

View File

@ -35,6 +35,8 @@ int gpio_open(const struct gpio_sys *gpio)
return res;
}
usleep(100000);
res = gpio_direction(gpio->pin, gpio->direction);
if(res < 0) {
syslog(LOG_ERR, "Unable to set direction for pin %d.\n", gpio->pin);