serial.c: Temporary quickfix until a libserialport fix is done.
This commit is contained in:
parent
dc99135322
commit
449cc16bb2
|
@ -244,11 +244,12 @@ SR_PRIV int serial_read(struct sr_serial_dev_inst *serial, void *buf,
|
||||||
case SP_ERR_ARG:
|
case SP_ERR_ARG:
|
||||||
sr_err("Attempted serial port read with invalid arguments.");
|
sr_err("Attempted serial port read with invalid arguments.");
|
||||||
return SR_ERR_ARG;
|
return SR_ERR_ARG;
|
||||||
case SP_ERR_FAIL:
|
// Temporarily disabled, will come back later.
|
||||||
error = sp_last_error_message();
|
// case SP_ERR_FAIL:
|
||||||
sr_err("Read error: %s.", error);
|
// error = sp_last_error_message();
|
||||||
sp_free_error_message(error);
|
// sr_err("Read error: %s.", error);
|
||||||
return SR_ERR;
|
// sp_free_error_message(error);
|
||||||
|
// return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
sr_spew("Read %d/%d bytes (fd %d).", ret, count, serial->fd);
|
sr_spew("Read %d/%d bytes (fd %d).", ret, count, serial->fd);
|
||||||
|
|
Loading…
Reference in New Issue