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:
parent
bb27c76513
commit
0714a010cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue