]> sigrok.org Git - libsigrok.git/commit - src/hardware/hung-chang-dso-2100/api.c
hung-chang-dso-2100: Fix session source fd
authorLars-Peter Clausen <redacted>
Sat, 23 Jan 2016 13:21:15 +0000 (14:21 +0100)
committerUwe Hermann <redacted>
Fri, 29 Jan 2016 17:24:42 +0000 (18:24 +0100)
commitb165a24234b44a39e87661132ee0c92b49dac5ea
tree1efa34d7428c7a8d33579ea29158c80e2665fd41
parenteb8e6cd2cbcb9c552418dcd0b7973b38b88c805f
hung-chang-dso-2100: Fix session source fd

For session sources without a file descriptor to poll a negative number
should be passed for the fd parameter. The hung-chang-dso-2100 driver
currently passes 0 instead, which is the stdin stream. Fix the issue by
passing -1 for the fd parameter.

Signed-off-by: Lars-Peter Clausen <redacted>
src/hardware/hung-chang-dso-2100/api.c