fix gpio_open
This commit is contained in:
parent
47bb25c9d3
commit
72d25c5f59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user