std_serial_dev_open: Remove SERIAL_NONBLOCK flag.
All calls in drivers are now explicitly (non)blocking.
This commit is contained in:
parent
406e0c79cf
commit
6c592ece70
|
@ -115,7 +115,7 @@ SR_PRIV int std_session_send_df_header(const struct sr_dev_inst *sdi,
|
||||||
*
|
*
|
||||||
* This function can be used to implement the dev_open() driver API
|
* This function can be used to implement the dev_open() driver API
|
||||||
* callback in drivers that use a serial port. The port is opened
|
* callback in drivers that use a serial port. The port is opened
|
||||||
* with the SERIAL_RDWR and SERIAL_NONBLOCK flags.
|
* with the SERIAL_RDWR flag.
|
||||||
*
|
*
|
||||||
* If the open succeeded, the status field of the given sdi is set
|
* If the open succeeded, the status field of the given sdi is set
|
||||||
* to SR_ST_ACTIVE.
|
* to SR_ST_ACTIVE.
|
||||||
|
@ -128,7 +128,7 @@ SR_PRIV int std_serial_dev_open(struct sr_dev_inst *sdi)
|
||||||
struct sr_serial_dev_inst *serial;
|
struct sr_serial_dev_inst *serial;
|
||||||
|
|
||||||
serial = sdi->conn;
|
serial = sdi->conn;
|
||||||
if (serial_open(serial, SERIAL_RDWR | SERIAL_NONBLOCK) != SR_OK)
|
if (serial_open(serial, SERIAL_RDWR) != SR_OK)
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
|
|
||||||
sdi->status = SR_ST_ACTIVE;
|
sdi->status = SR_ST_ACTIVE;
|
||||||
|
|
Loading…
Reference in New Issue