From 75138c90ce05427304eb64de968062e78f70db4d Mon Sep 17 00:00:00 2001 From: Henry Bruce Date: Tue, 10 Feb 2015 15:39:21 +0000 Subject: [PATCH] gpio.c: mraa_gpio_wait_interrupt() now waits for subsequent interrupts Signed-off-by: Henry Bruce Signed-off-by: Brendan Le Foll --- src/gpio/gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpio/gpio.c b/src/gpio/gpio.c index a02e8d0..4cd3fad 100644 --- a/src/gpio/gpio.c +++ b/src/gpio/gpio.c @@ -156,6 +156,7 @@ mraa_gpio_wait_interrupt(int fd) pfd.events = POLLPRI; // do an initial read to clear interupt + lseek (fd, 0, SEEK_SET); read (fd, &c, 1); if (fd <= 0) {