diff --git a/src/serialport_unix.cpp b/src/serialport_unix.cpp index c3cba1a..6b17c6c 100644 --- a/src/serialport_unix.cpp +++ b/src/serialport_unix.cpp @@ -234,21 +234,18 @@ void EIO_Open(uv_work_t* req) { options.c_cflag &= ~PARENB; options.c_cflag &= ~CSTOPB; options.c_cflag &= ~CSIZE; - options.c_cflag |= CS8; break; case SERIALPORT_PARITY_ODD: options.c_cflag |= PARENB; options.c_cflag |= PARODD; options.c_cflag &= ~CSTOPB; options.c_cflag &= ~CSIZE; - options.c_cflag |= CS7; break; case SERIALPORT_PARITY_EVEN: options.c_cflag |= PARENB; options.c_cflag &= ~PARODD; options.c_cflag &= ~CSTOPB; options.c_cflag &= ~CSIZE; - options.c_cflag |= CS7; break; default: snprintf(data->errorString, sizeof(data->errorString), "Invalid parity setting %d", data->parity);