From: Matthias Heidbrink Date: Thu, 17 Oct 2013 08:57:12 +0000 (+0200) Subject: serial: Added flag IXANY (any char will restart) to XON/XOFF handshaking. X-Git-Tag: libsigrok-0.2.2~29 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1b943b6d8b81be8b91216525a56007c5bdef43df;p=libsigrok.git serial: Added flag IXANY (any char will restart) to XON/XOFF handshaking. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index fb5d0b6a..0c64203f 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -548,7 +548,7 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, return SR_ERR; } - term.c_iflag &= ~(IXON | IXOFF); + term.c_iflag &= ~(IXON | IXOFF | IXANY); term.c_cflag &= ~CRTSCTS; switch (flowcontrol) { case 0: @@ -561,7 +561,7 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate, break; case 2: sr_spew("Configuring XON/XOFF flow control."); - term.c_iflag |= IXON | IXOFF; + term.c_iflag |= (IXON | IXOFF | IXANY); break; default: sr_err("Unsupported flow control setting %d.", flowcontrol);