From 4a418eac71a348e0fc06abcf7938c217b2085ddf Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 10 Nov 2018 16:20:51 -0500 Subject: fix incorrect strings --- gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpio.c b/gpio.c index da2ffef..c72ba0f 100644 --- a/gpio.c +++ b/gpio.c @@ -10,8 +10,8 @@ #define GPIO_EXPORT GPIO_BASEDIR "/export" #define GPIO_IN "in" -#define GPIO_INIT_LOW "GPIO_INIT_LOW" -#define GPIO_INIT_HIGH "GPIO_INIT_HIGH" +#define GPIO_INIT_LOW "low" +#define GPIO_INIT_HIGH "high" static int gpio_open(int port, const char *field, int flags) { @@ -50,7 +50,7 @@ static void gpio_enable(int export_fd, int port, const char *state) { dprintf(export_fd, "%d", port); int fd = gpio_open(port, "direction", O_WRONLY); - write(fd, "state", strlen(state)); + write(fd, "direction", strlen(state)); close(fd); } -- cgit v1.2.1