That's just way more expedient
This commit is contained in:
parent
629f3e0049
commit
fdd550844b
1 changed files with 2 additions and 9 deletions
11
src/link.c
11
src/link.c
|
@ -15,15 +15,8 @@ int tabby_link_open(const char *dev) {
|
|||
goto error_open;
|
||||
}
|
||||
|
||||
attr.c_cflag = CS8 | CREAD | HUPCL;
|
||||
attr.c_ispeed = TABBY_LINK_BAUD;
|
||||
attr.c_ospeed = TABBY_LINK_BAUD;
|
||||
attr.c_iflag = IGNPAR;
|
||||
attr.c_oflag = 0;
|
||||
attr.c_lflag = 0;
|
||||
|
||||
attr.c_cc[VTIME] = 0;
|
||||
attr.c_cc[VMIN] = 1;
|
||||
cfmakeraw(&attr);
|
||||
cfsetspeed(&attr, TABBY_LINK_BAUD);
|
||||
|
||||
if (tcsetattr(fd, TCSAFLUSH, &attr) < 0) {
|
||||
goto error_io;
|
||||
|
|
Loading…
Add table
Reference in a new issue