From 8156be33f7a9bbf72e87d9eed8fba96819eb6ef5 Mon Sep 17 00:00:00 2001 From: Edward Emelianov Date: Wed, 5 Jul 2023 13:29:16 +0300 Subject: [PATCH] invert GPIO output (due to active LOW) --- SSL_sockets_GPIO/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSL_sockets_GPIO/gpio.c b/SSL_sockets_GPIO/gpio.c index ef3c6ed..b798097 100644 --- a/SSL_sockets_GPIO/gpio.c +++ b/SSL_sockets_GPIO/gpio.c @@ -69,7 +69,7 @@ int gpio_open_device(const char *path){ } /** - * @brief gpio_set_outputs - set output pins + * @brief gpio_set_outputs - set output pins (ACTIVE_LOW!!! so we need to invert incoming data for proper work) * @return rq.fd or -1 if failed */ int gpio_setup_outputs(){ @@ -102,7 +102,7 @@ static int gpio_setreset(int input, int set){ bzero(&values, sizeof(values)); uint64_t val = (1<