Skip to content

Commit

Permalink
gateware.uart: unbreak none parity.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Sep 10, 2018
1 parent a47f3e3 commit 690aaa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/gateware/uart.py
Expand Up @@ -133,7 +133,7 @@ def __init__(self, pads, bit_cyc, data_bits=8, parity="none"):
bit_cyc = int(bit_cyc)

def calc_parity(sig, kind):
if kind == "zero":
if kind in ("zero", "none"):
return C(0, 1)
elif kind == "one":
return C(1, 1)
Expand Down

0 comments on commit 690aaa8

Please sign in to comment.