gmc-mh-1x-2x: Mark serial read call as nonblocking.

This call was already nonblocking since the driver opens the port with the
SERIAL_NONBLOCK flag. It only reads one byte, and a zero result is handled
appropriately.
This commit is contained in:
Martin Ling 2014-09-21 18:33:34 +01:00 committed by Uwe Hermann
parent bb27c76513
commit 0714a010cc
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ static int read_byte(struct sr_serial_dev_inst *serial, gint64 timeout)
int rc = 0;
for (;;) {
rc = serial_read(serial, &result, 1);
rc = serial_read_nonblocking(serial, &result, 1);
if (rc == 1) {
sr_spew("read: 0x%02x/%d", result, result);
return result;