That's just way more expedient

This commit is contained in:
XANTRONIX Development 2016-06-08 19:44:13 -05:00
parent 629f3e0049
commit fdd550844b

View file

@ -15,15 +15,8 @@ int tabby_link_open(const char *dev) {
goto error_open; goto error_open;
} }
attr.c_cflag = CS8 | CREAD | HUPCL; cfmakeraw(&attr);
attr.c_ispeed = TABBY_LINK_BAUD; cfsetspeed(&attr, 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;
if (tcsetattr(fd, TCSAFLUSH, &attr) < 0) { if (tcsetattr(fd, TCSAFLUSH, &attr) < 0) {
goto error_io; goto error_io;