]> sigrok.org Git - libsigrok.git/commit - src/hardware/fluke-dmm/fluke.c
fluke-dmm: Mark serial read call as nonblocking.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 17:12:48 +0000 (18:12 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:23 +0000 (23:30 +0200)
commit707fa85ad5fa7e3f74dbb6863891e80a26126b25
tree0dfa11a5496b5a22c08d833b08eee126904d69bb
parent55e32714f994aaf4841b59bc67c82d263aeb0a70
fluke-dmm: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. Only one byte is read. The case of 0 being returned
is not handled, but the call is only made if G_IO_IN occurred so in theory,
there should be a byte available. It might be wise to add handling for a
return of 0 nonetheless, as I'm not sure if this is always accurate.
src/hardware/fluke-dmm/fluke.c