Private
Public Access
2
0

gpio.c: mraa_gpio_wait_interrupt() now waits for subsequent interrupts

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Henry Bruce
2015-02-10 15:39:21 +00:00
committed by Brendan Le Foll
parent 2dc79dde6f
commit 75138c90ce

View File

@@ -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) {