From e6e4ecdd9051fe52b1d0cc864b15cc29e73ff7ad Mon Sep 17 00:00:00 2001 From: Angelus Vela Date: Thu, 24 Sep 2026 11:03:03 -0600 Subject: [PATCH] Code with direction function --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }