Code with direction function

arguments
Angelus Vela 21 hours ago
parent 0f9f410d49
commit e6e4ecdd90

@ -82,7 +82,7 @@ int gpio_direction(int gpio, const char *direction){
perror("Error openng the GPIO path"); perror("Error openng the GPIO path");
return -1; return -1;
} }
write(fd,gpio, strlen(gpio)); write(fd,gpio, strlen(direction));
close(fd); close(fd);
return 0; return 0;
} }

Loading…
Cancel
Save