Skip to content

Commit

Permalink
removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
arfrie22 committed Jul 15, 2024
1 parent c56a734 commit d742d63
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gpio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,6 @@ void attachInterrupt(int pin, const char* mode, void (*isr)(void)) {
#define GPIO_MAX 64

// GPIO interfaces
const char *gpio_chipname_pi_n = "gpiochip0";
const char *gpio_chipname_pi_5 = "gpiochip0";
const char *gpio_consumer = "opensprinkler";

struct gpiod_chip *chip = NULL;
Expand All @@ -490,7 +488,6 @@ bool prefix(const char *pre, const char *str) {
return strncmp(pre, str, strlen(pre)) == 0;
}


int assert_gpiod_chip() {
if( !chip ) {
const char *chip_name = NULL;
Expand Down

0 comments on commit d742d63

Please sign in to comment.