LPC32xx serial: Fix a typo in ioctl TIOCSRS485 ioctl.

This commit is contained in:
Vytautas Lukenskas 2016-10-27 07:00:32 -06:00 committed by Gregory Nutt
parent 76788040d5
commit d9c2789253
1 changed files with 2 additions and 2 deletions

View File

@ -933,7 +933,7 @@ static inline int up_set_rs485_mode(struct up_dev_s *priv,
/* Are we enabling or disabling RS-485 support? */
if ((mode->flags && SER_RS485_RTS_ON_SEND) != 0)
if ((mode->flags & SER_RS485_ENABLED) == 0)
{
/* Disable all RS-485 features */
@ -961,7 +961,7 @@ static inline int up_set_rs485_mode(struct up_dev_s *priv,
* be inverted.
*/
if ((mode->flags && SER_RS485_RTS_ON_SEND) != 0)
if ((mode->flags & SER_RS485_RTS_ON_SEND) != 0)
{
regval |= UART_RS485CTRL_OINV;
}