Skip to content

Commit

Permalink
Merge pull request #375 from dmbain/fix-uart-default-parity
Browse files Browse the repository at this point in the history
host: uart command: fix python KeyError when parity argument not specified
  • Loading branch information
Qyriad authored Jun 9, 2021
2 parents a21c30e + f48a588 commit 407ceb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/greatfet/commands/greatfet_uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main():
parser.add_argument('baud', nargs='?', type=from_eng_notation, default=115200, help="Baud rate; in symbols/second. Defaults to 115200.")
parser.add_argument('-d', '--data', type=int, default=8, help="The number of data bits per frame.")
parser.add_argument('-S', '--stop', type=int, default=1, help="The number of stop bits per frame.")
parser.add_argument('-P', '--parity', choices=parity_modes, default=0, help="The type of parity to use.")
parser.add_argument('-P', '--parity', choices=parity_modes, default='none', help="The type of parity to use.")
parser.add_argument('-E', '--echo', action='store_true', help="If provided, local echo will be enabled.")
parser.add_argument('-N', '--no-newline-translation', action='store_false', dest='tr_newlines',
help="Provide this option to disable newline translation.")
Expand Down

0 comments on commit 407ceb5

Please sign in to comment.