@ -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;