Consistency re. clear_bit/set_bit.

This commit is contained in:
Nic0w 2021-05-04 19:56:36 +02:00
parent ac2af7582e
commit be78a5c792

View file

@ -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(),
}; };