Skip to content

Commit

Permalink
Merge pull request #257 from flaviojs/fix-parity-vtty_parse_serial_op…
Browse files Browse the repository at this point in the history
…tion

Fix the parity in vtty_parse_serial_option.
  • Loading branch information
grossmj authored Oct 5, 2024
2 parents ed80796 + c287f53 commit fcfe8c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/dev_vtty.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@ int vtty_parse_serial_option(vtty_serial_option_t *option, char *optarg)
switch(*array[3]) {
case 'o':
case 'O':
option->parity = 1; /* odd */
option->parity = 1; break; /* odd */
case 'e':
case 'E':
option->parity = 2; /* even */
option->parity = 2; break; /* even */
default:
option->parity = 0; /* none */
option->parity = 0; break; /* none */
}
} else {
option->parity = 0;
Expand Down

0 comments on commit fcfe8c8

Please sign in to comment.