mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
cfmakeraw:
clear PARODD bit too, help user program to set its own parity via | Set CREAD bit, it is 99% case
This commit is contained in:
parent
8cf220d53b
commit
9909e796b9
1 changed files with 2 additions and 2 deletions
|
|
@ -164,8 +164,8 @@ cfmakeraw(t)
|
|||
t->c_iflag |= IGNBRK;
|
||||
t->c_oflag &= ~OPOST;
|
||||
t->c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN|NOFLSH|TOSTOP|PENDIN);
|
||||
t->c_cflag &= ~(CSIZE|PARENB);
|
||||
t->c_cflag |= CS8;
|
||||
t->c_cflag &= ~(CSIZE|PARENB|PARODD);
|
||||
t->c_cflag |= CS8|CREAD;
|
||||
t->c_cc[VMIN] = 1;
|
||||
t->c_cc[VTIME] = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue