mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-27 03:26:36 +11:00
Consistency re. clear_bit/set_bit.
This commit is contained in:
parent
ac2af7582e
commit
be78a5c792
1 changed files with 2 additions and 2 deletions
|
@ -412,7 +412,7 @@ fn set_format<'w>(
|
||||||
Some(p) => {
|
Some(p) => {
|
||||||
w.pen().set_bit();
|
w.pen().set_bit();
|
||||||
match p {
|
match p {
|
||||||
Parity::Odd => w.eps().bit(false),
|
Parity::Odd => w.eps().clear_bit(),
|
||||||
Parity::Even => w.eps().set_bit(),
|
Parity::Even => w.eps().set_bit(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -431,7 +431,7 @@ fn set_format<'w>(
|
||||||
};
|
};
|
||||||
|
|
||||||
match stop_bits {
|
match stop_bits {
|
||||||
StopBits::One => w.stp2().bit(false),
|
StopBits::One => w.stp2().clear_bit(),
|
||||||
StopBits::Two => w.stp2().set_bit(),
|
StopBits::Two => w.stp2().set_bit(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue