Skip to content

Commit

Permalink
arch/arm64/src/imx9/imx9_lpuart.c: Fix parity get in TCGETS
Browse files Browse the repository at this point in the history
This is a partial revert / fix for regression from 74c1dfb

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Oct 31, 2024
1 parent b6b3896 commit 10fc305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/src/imx9/imx9_lpuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1613,8 +1613,8 @@ static int imx9_ioctl(struct file *filep, int cmd, unsigned long arg)

/* Return parity */

termiosp->c_cflag = (!priv->parity ? PARENB : 0) |
(priv->parity ? PARODD : 0);
termiosp->c_cflag = ((priv->parity != 0) ? PARENB : 0) |
((priv->parity == 1) ? PARODD : 0);

/* Return stop bits */

Expand Down

0 comments on commit 10fc305

Please sign in to comment.