mirror of https://gerrit.osmocom.org/libosmocore
cosmetic: clarify c_iflag in osmo_serial_init()
We first set the ISTRIP bit only to remove it in the next line. Let's try to avoid confusing the reader. Change-Id: Icba43dd4b6dc4f9c7f8fcf91d24b3baac4e0c74a
This commit is contained in:
parent
ca18c9df7d
commit
2e286a5429
|
@ -97,7 +97,7 @@ osmo_serial_init(const char *dev, speed_t baudrate)
|
|||
tio.c_cflag &= ~(PARENB | CSTOPB | CSIZE | CRTSCTS);
|
||||
tio.c_cflag |= (CREAD | CLOCAL | CS8);
|
||||
tio.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
|
||||
tio.c_iflag |= (INPCK | ISTRIP);
|
||||
tio.c_iflag |= (INPCK);
|
||||
tio.c_iflag &= ~(ISTRIP | IXON | IXOFF | IGNBRK | INLCR | ICRNL | IGNCR);
|
||||
tio.c_oflag &= ~(OPOST | ONLCR);
|
||||
|
||||
|
|
Loading…
Reference in New Issue