From e99847bfc5688d79d9b185075bd547914c62969e Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Thu, 21 Feb 2019 07:01:22 +0100 Subject: dev/sc16is752: Fix parity generation. --- cpukit/dev/serial/sc16is752.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/dev/serial') diff --git a/cpukit/dev/serial/sc16is752.c b/cpukit/dev/serial/sc16is752.c index 068a2d3817..a58b87bfb7 100644 --- a/cpukit/dev/serial/sc16is752.c +++ b/cpukit/dev/serial/sc16is752.c @@ -183,6 +183,7 @@ static bool sc16is752_set_attributes( } if ((term->c_cflag & PARENB) != 0){ + ctx->lcr |= SC16IS752_LCR_SET_PARITY; if ((term->c_cflag & PARODD) != 0) { ctx->lcr &= ~SC16IS752_LCR_EVEN_PARITY; } else { -- cgit v1.2.3