Skip to content

Commit f891226

Browse files
author
Thomas Preston
committed
Merge branch 'master' of https://github.com/piface/libmcp23s17
2 parents cae75ca + 789754b commit f891226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp23s17.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int mcp23s17_wait_for_interrupt(int timeout)
191191
int num_fds = -1;
192192

193193
if (epoll_fd <= 0) {
194-
if (!init_epoll()) {
194+
if (init_epoll() != 0) {
195195
return -1;
196196
}
197197
}

0 commit comments

Comments
 (0)