From bb98f165cad1caa54c4e613124f0e0d0b50fc097 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sun, 1 Dec 2019 01:21:26 -0700 Subject: [PATCH] bugfix in read_buttons --- src/gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpio.c b/src/gpio.c index 1e2f902..873fd6c 100644 --- a/src/gpio.c +++ b/src/gpio.c @@ -194,6 +194,7 @@ int Gpio_read_buttons(void) rc |= STATE_BUTTON3; if (gpio_input(GLINE_BUTTON4) == 0) rc |= STATE_BUTTON4; + return rc; } int Gpio_poll_buttons(void)