diff --git a/main.c b/main.c index 65f8eef..d8cf450 100644 --- a/main.c +++ b/main.c @@ -82,7 +82,7 @@ int gpio_direction(int gpio, const char *direction){ perror("Error openng the GPIO path"); return -1; } - write(fd,gpio, strlen(gpio)); + write(fd,gpio, strlen(direction)); close(fd); return 0; }