[kmod bluetooth] hci_usb.c has been replaced with btusb.c in 2.6.29 - modify makefile...
[openwrt.git] / package / gpioctl / src / main.c
index 9aa3173..8ad2774 100644 (file)
@@ -63,7 +63,7 @@ main(int argc, char **argv)
        } else if (!strcmp(argv[1], "get"))
        {
                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"))
        {
                ioctl(fd, GPIO_SET, gpio_pin);
This page took 0.027505 seconds and 4 git commands to generate.