Private
Public Access
2
0

gpio.c: fix spelling in comment

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:40:00 +00:00
committed by Brendan Le Foll
parent 75138c90ce
commit 7b213b6393

View File

@@ -155,7 +155,7 @@ mraa_gpio_wait_interrupt(int fd)
pfd.fd = fd;
pfd.events = POLLPRI;
// do an initial read to clear interupt
// do an initial read to clear interrupt
lseek (fd, 0, SEEK_SET);
read (fd, &c, 1);
@@ -167,7 +167,7 @@ mraa_gpio_wait_interrupt(int fd)
// poll is a cancelable point like sleep()
int x = poll (&pfd, 1, -1);
// do a final read to clear interupt
// do a final read to clear interrupt
read (fd, &c, 1);
return MRAA_SUCCESS;