gpioctl get: Fix typo in the printf arguments.
SVN-Revision: 10603
This commit is contained in:
parent
c25cc7e6e5
commit
4769134ec3
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ main(int argc, char **argv)
|
||||||
} else if (!strcmp(argv[1], "get"))
|
} else if (!strcmp(argv[1], "get"))
|
||||||
{
|
{
|
||||||
result = ioctl(fd, GPIO_GET, gpio_pin);
|
result = ioctl(fd, GPIO_GET, gpio_pin);
|
||||||
printf("Pin %d is %s\n", (result ? "HIGH" : "LOW"));
|
printf("Pin %d is %s\n", gpio_pin, (result ? "HIGH" : "LOW"));
|
||||||
} else if (!strcmp(argv[1], "set"))
|
} else if (!strcmp(argv[1], "set"))
|
||||||
{
|
{
|
||||||
ioctl(fd, GPIO_SET, gpio_pin);
|
ioctl(fd, GPIO_SET, gpio_pin);
|
||||||
|
|
Loading…
Reference in a new issue