Skip to content

Commit 789754b

Browse files
committed
Merge pull request #9 from stevensmi/master
Fix init_epoll usage. Return value 0 indicates no error.
2 parents b0ad743 + 3403dda commit 789754b

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
@@ -189,7 +189,7 @@ int mcp23s17_wait_for_interrupt(int timeout)
189189
int num_fds = -1;
190190

191191
if (epoll_fd <= 0) {
192-
if (!init_epoll()) {
192+
if (init_epoll() != 0) {
193193
return -1;
194194
}
195195
}

0 commit comments

Comments
 (0)