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:
ee05b49
)
gpio.c: change check to allow fd 0
author
Jon Trulson
<jtrulson@ics.com>
Fri, 20 Feb 2015 13:36:42 +0000
(13:36 +0000)
committer
Brendan Le Foll
<brendan.le.foll@intel.com>
Fri, 20 Feb 2015 13:36:47 +0000
(13:36 +0000)
Signed-off-by: Jon Trulson <jtrulson@ics.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
78327d8
..
4150067
100644
(file)
--- a/
src/gpio/gpio.c
+++ b/
src/gpio/gpio.c
@@
-151,7
+151,7
@@
mraa_gpio_wait_interrupt(int fd)
unsigned char c;
struct pollfd pfd;
- if (fd <
=
0) {
+ if (fd < 0) {
return MRAA_ERROR_INVALID_RESOURCE;
}