From be78a5c792bb5c073aa7966a51ebb155461eeb90 Mon Sep 17 00:00:00 2001 From: Nic0w Date: Tue, 4 May 2021 19:56:36 +0200 Subject: [PATCH] Consistency re. clear_bit/set_bit. --- rp2040-hal/src/uart.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/src/uart.rs b/rp2040-hal/src/uart.rs index 888cdb5..5acaca8 100644 --- a/rp2040-hal/src/uart.rs +++ b/rp2040-hal/src/uart.rs @@ -412,7 +412,7 @@ fn set_format<'w>( Some(p) => { w.pen().set_bit(); match p { - Parity::Odd => w.eps().bit(false), + Parity::Odd => w.eps().clear_bit(), Parity::Even => w.eps().set_bit(), }; } @@ -431,7 +431,7 @@ fn set_format<'w>( }; match stop_bits { - StopBits::One => w.stp2().bit(false), + StopBits::One => w.stp2().clear_bit(), StopBits::Two => w.stp2().set_bit(), };