diff --git a/src/gpio/gpio.c b/src/gpio/gpio.c index 78327d8..4150067 100644 --- 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; }