1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

get_config(): Add a quickfix for xon_xoff.

The config->xon_xoff variable is not filled correctly with data read
from the current serial port config. Without this, the value of the
variable will be bogus and some code that depends on the variable will fail.

Note: This is just a temporary quickfix, not a proper final solution.
This commit is contained in:
Uwe Hermann 2013-11-19 19:20:50 +01:00
parent 4b448bc542
commit 705bdc6947

View File

@ -724,6 +724,9 @@ static enum sp_return get_config(struct sp_port *port, struct port_data *data,
config->dtr = (data->controlbits & TIOCM_DTR) ? SP_DTR_ON : SP_DTR_OFF;
config->dsr = SP_DSR_IGNORE;
/* FIXME: Set config->xon_xoff properly, depending on data->term. */
config->xon_xoff = SP_XONXOFF_DISABLED;
#endif
return SP_OK;