mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Fix possibly wrong bit masking.
Reported by: n_hibma Submitted by: Hans Petter Selasky
This commit is contained in:
parent
bc77ef90aa
commit
9429d9dbb4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208017
@ -1339,7 +1339,7 @@ uhso_ucom_cfg_set_dtr(struct ucom_softc *ucom, uint8_t onoff)
|
||||
if (onoff)
|
||||
sc->sc_line |= UCDC_LINE_DTR;
|
||||
else
|
||||
sc->sc_line &= UCDC_LINE_DTR;
|
||||
sc->sc_line &= ~UCDC_LINE_DTR;
|
||||
|
||||
uhso_bs_cfg(sc);
|
||||
}
|
||||
@ -1355,7 +1355,7 @@ uhso_ucom_cfg_set_rts(struct ucom_softc *ucom, uint8_t onoff)
|
||||
if (onoff)
|
||||
sc->sc_line |= UCDC_LINE_RTS;
|
||||
else
|
||||
sc->sc_line &= UCDC_LINE_DTR;
|
||||
sc->sc_line &= ~UCDC_LINE_RTS;
|
||||
|
||||
uhso_bs_cfg(sc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user