Fix a typo.

This commit is contained in:
David Betz 2015-01-27 20:15:30 -05:00
parent d6be69d288
commit 35cdda6f38

View File

@ -146,7 +146,7 @@ int gpio_write(int pin, int value)
snprintf(path, VALUE_MAX, "/sys/class/gpio/gpio%d/value", pin); snprintf(path, VALUE_MAX, "/sys/class/gpio/gpio%d/value", pin);
fd = open(path, O_WRONLY); fd = open(path, O_WRONLY);
if (-1 == fd) { if (-1 == fd) {
fprintf(stderr, "Failed to open gpio% for writing!\n"); fprintf(stderr, "Failed to open gpio%d for writing!\n");
return(-1); return(-1);
} }