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
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue