1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Updating setup to allow for repeated calls on a pin. Not totally sold on this, but it work and is what RPi.GPIO does. This will close #63

This commit is contained in:
Robert Wolterman
2017-03-20 23:06:09 -05:00
parent 38a34e7edf
commit 2b48571ee3
7 changed files with 31 additions and 4 deletions

View File

@ -177,7 +177,7 @@ int gpio_export(int gpio)
char err[256];
snprintf(err, sizeof(err), "gpio_export: could not write '%s' to %s (%s)", str_gpio, filename, strerror(e_no));
add_error_msg(err);
return -1;
return -2;
}
// add to list