]> sigrok.org Git - libsigrok.git/commit - src/hardware/gmc-mh-1x-2x/protocol.c
gmc-mh-1x-2x: Mark serial read calls as nonblocking.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 17:36:00 +0000 (18:36 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:30 +0000 (23:30 +0200)
commit4a0eda2b701d4ef26dc3f58f4ff00bbbbb21b246
treeaf763e0e7558026cd7fd40c2d05fe91f9004c99a
parent0714a010ccd12514861eb24411fdb156299658a9
gmc-mh-1x-2x: Mark serial read calls as nonblocking.

These calls were already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. They only read one byte. A return value of zero is not
handled, but should not occur in theory due to the G_IO_IN check. It might be
good to add handling of a zero return anyway, since I'm not sure if this is
always accurate.
src/hardware/gmc-mh-1x-2x/protocol.c