projects
/
contrib
/
mraa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc79dd
)
gpio.c: mraa_gpio_wait_interrupt() now waits for subsequent interrupts
author
Henry Bruce
<henry.bruce@intel.com>
Tue, 10 Feb 2015 15:39:21 +0000
(15:39 +0000)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Tue, 10 Feb 2015 15:39:21 +0000
(15:39 +0000)
Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/gpio/gpio.c
patch
|
blob
|
history
diff --git
a/src/gpio/gpio.c
b/src/gpio/gpio.c
index
a02e8d0
..
4cd3fad
100644
(file)
--- 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) {