From e3460fb4598cc1460d6c6c7e48ccebaec6b4b119 Mon Sep 17 00:00:00 2001 From: kutayboz Date: Tue, 6 Jun 2023 20:03:51 +0300 Subject: Compiler parameters correction and resulting fixes. --- src/gpio.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gpio.c') diff --git a/src/gpio.c b/src/gpio.c index 9c00805..74d37ef 100644 --- a/src/gpio.c +++ b/src/gpio.c @@ -1,5 +1,6 @@ #include #include +#include int modemPowerToggle(int pinNum) { struct gpiod_chip *chip; @@ -11,8 +12,7 @@ int modemPowerToggle(int pinNum) { return 1; } - line = gpiod_chip_get_line( - chip, pinNum); // Replace with the desired GPIO pin number + line = gpiod_chip_get_line(chip, pinNum); if (!line) { perror("Error getting GPIO line"); gpiod_chip_close(chip); @@ -54,8 +54,7 @@ int checkPinVal(int pinNum) { return -1; } - line = gpiod_chip_get_line( - chip, pinNum); // Replace with the desired GPIO pin number + line = gpiod_chip_get_line(chip, pinNum); if (!line) { perror("Error getting GPIO line"); gpiod_chip_close(chip); -- cgit v1.3