serial: more serial processing flags to turn off
This commit is contained in:
parent
08a9260ba4
commit
b1a051544d
|
@ -589,8 +589,9 @@ SR_PRIV int serial_set_params(struct sr_serial_dev_inst *serial, int baudrate,
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do not translate carriage return to newline on input. */
|
/* Turn off all serial port cooking. */
|
||||||
term.c_iflag &= ~(ICRNL);
|
term.c_iflag &= ~(ISTRIP | INLCR | ICRNL);
|
||||||
|
term.c_oflag &= ~(ONLCR | OCRNL | ONOCR | OFILL );
|
||||||
|
|
||||||
/* Disable canonical mode, and don't echo input characters. */
|
/* Disable canonical mode, and don't echo input characters. */
|
||||||
term.c_lflag &= ~(ICANON | ECHO);
|
term.c_lflag &= ~(ICANON | ECHO);
|
||||||
|
|
Loading…
Reference in New Issue