From 03ad3d2552a64f579de001605a6d98eb027d6a61 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sat, 28 Sep 2013 18:50:30 +0100 Subject: [PATCH] Parity shouldn't be changing data bits --- src/serialport_unix.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/serialport_unix.cpp b/src/serialport_unix.cpp index ee73e2b..53b1b2e 100644 --- a/src/serialport_unix.cpp +++ b/src/serialport_unix.cpp @@ -166,21 +166,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);