diff options
Diffstat (limited to 'serial/serialposix.py')
-rw-r--r-- | serial/serialposix.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/serial/serialposix.py b/serial/serialposix.py index 30af312..27f97f3 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py @@ -360,6 +360,9 @@ class Serial(SerialBase, PlatformSpecific): elif self._parity == serial.PARITY_SPACE and plat[:5] == 'linux': cflag |= (termios.PARENB | CMSPAR) cflag &= ~(termios.PARODD) + elif self._parity == serial.PARITY_IGNORE: + cflag |= termios.PARENB # enable parity bit + iflag |= termios.IGNPAR # ignore its value / no error report else: raise ValueError('Invalid parity: {!r}'.format(self._parity)) # setup flow control |