sr: turn off canonical mode and echo ion serial ports by default
This commit is contained in:
parent
e7edd64f45
commit
5c51e09868
|
@ -316,6 +316,9 @@ SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity,
|
|||
return SR_ERR;
|
||||
}
|
||||
|
||||
/* Some default parameters */
|
||||
term.c_lflag &= ~(ICANON | ECHO);
|
||||
|
||||
if (tcsetattr(fd, TCSADRAIN, &term) < 0)
|
||||
return SR_ERR;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue