Private
Public Access
2
0

gpio.c: change check to allow fd 0

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Jon Trulson
2015-02-20 13:36:42 +00:00
committed by Brendan Le Foll
parent ee05b49ea2
commit 9d80b12521

View File

@@ -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;
}