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.
This commit is contained in:
parent
9068fdcf0b
commit
08dafeeaae
3 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
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 <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/wildcard.c (wildcard_expand): Set default return
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue