Skip to content

Commit d4ad343

Browse files
authored
Merge pull request #134 from calebissharp/fix-uart-parity
Fix word length registers for uart_full config
2 parents 6d262e1 + b181586 commit d4ad343

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)