Skip to content

Commit

Permalink
Fix serial --rtscts option processing
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidjaar committed Dec 9, 2014
1 parent 17328db commit bac5d1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2014-12-09 Andrei Borzenkov <[email protected]>

* grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
option processing.

2014-12-07 David Kozub <[email protected]>

* grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
Expand Down
4 changes: 2 additions & 2 deletions grub-core/term/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ grub_cmd_serial (grub_extcmd_context_t ctxt, int argc, char **args)

if (state[OPTION_RTSCTS].set)
{
if (grub_strcmp (state[OPTION_PARITY].arg, "on") == 0)
if (grub_strcmp (state[OPTION_RTSCTS].arg, "on") == 0)
config.rtscts = 1;
if (grub_strcmp (state[OPTION_PARITY].arg, "off") == 0)
else if (grub_strcmp (state[OPTION_RTSCTS].arg, "off") == 0)
config.rtscts = 0;
else
return grub_error (GRUB_ERR_BAD_ARGUMENT,
Expand Down

0 comments on commit bac5d1a

Please sign in to comment.