diff --git a/ChangeLog b/ChangeLog index 720b81b49..80e792967 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2012-06-08 Vladimir Serbinenko + + Add a 1.5 stop bits value. + + * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5. + * include/grub/serial.h (grub_serial_stop_bits_t): Add + GRUB_SERIAL_STOP_BITS_1_5. + 2012-06-08 Vladimir Serbinenko * grub-core/commands/wildcard.c (wildcard_expand): Set default return diff --git a/grub-core/term/serial.c b/grub-core/term/serial.c index 7083fef57..e1469e57a 100644 --- a/grub-core/term/serial.c +++ b/grub-core/term/serial.c @@ -217,6 +217,8 @@ grub_cmd_serial (grub_extcmd_context_t ctxt, int argc, char **args) config.stop_bits = GRUB_SERIAL_STOP_BITS_1; else if (! grub_strcmp (state[5].arg, "2")) config.stop_bits = GRUB_SERIAL_STOP_BITS_2; + else if (! grub_strcmp (state[5].arg, "1.5")) + config.stop_bits = GRUB_SERIAL_STOP_BITS_1_5; else return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("unsupported serial port stop bits number")); diff --git a/include/grub/serial.h b/include/grub/serial.h index 065dabbc2..d68a255eb 100644 --- a/include/grub/serial.h +++ b/include/grub/serial.h @@ -54,6 +54,7 @@ typedef enum typedef enum { GRUB_SERIAL_STOP_BITS_1, + GRUB_SERIAL_STOP_BITS_1_5, GRUB_SERIAL_STOP_BITS_2, } grub_serial_stop_bits_t;