Skip to content

Commit b181586

Browse files
committed
Fix parity pins for uart_full config
1 parent 6d262e1 commit b181586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/serial/usart.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,9 @@ macro_rules! uart_full {
641641
.re()
642642
.set_bit()
643643
.m0()
644-
.bit(config.wordlength == WordLength::DataBits7)
645-
.m1()
646644
.bit(config.wordlength == WordLength::DataBits9)
645+
.m1()
646+
.bit(config.wordlength == WordLength::DataBits7)
647647
.pce()
648648
.bit(config.parity != Parity::ParityNone)
649649
.ps()

0 commit comments

Comments
 (0)