Skip to content

Commit

Permalink
Merge #242
Browse files Browse the repository at this point in the history
242: Fix inverted UART parity configuration r=richardeoin a=starthal

Fixes #241 

Co-authored-by: Stephen Albert-Moore <stephen.albert-moore@georgfischer.com>
  • Loading branch information
bors[bot] and starthal authored Sep 2, 2021
2 parents be3100f + 93bc09a commit 0d2287b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ macro_rules! usart {
_ => PCE::ENABLED,
}).ps()
.variant(match config.parity {
Parity::ParityOdd => PS::EVEN,
_ => PS::ODD,
Parity::ParityOdd => PS::ODD,
_ => PS::EVEN,
})
});

Expand Down

0 comments on commit 0d2287b

Please sign in to comment.