From c287f53f570489742d0a01af3dbf1883e671c513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20J=2E=20Saraiva?= Date: Sat, 5 Oct 2024 10:50:58 +0100 Subject: [PATCH] Fix the parity in vtty_parse_serial_option. Fixes #240 --- common/dev_vtty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/dev_vtty.c b/common/dev_vtty.c index 7bed242f1..a6523d183 100644 --- a/common/dev_vtty.c +++ b/common/dev_vtty.c @@ -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;