Fix bugs in grub_getkey introduced in previous commit
This commit is contained in:
parent
9518e2a12b
commit
071b673a7b
1 changed files with 6 additions and 2 deletions
|
@ -104,15 +104,19 @@ grub_checkkey (void)
|
||||||
int
|
int
|
||||||
grub_getkey (void)
|
grub_getkey (void)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
grub_refresh ();
|
grub_refresh ();
|
||||||
|
|
||||||
while (pending_key != GRUB_TERM_NO_KEY)
|
grub_checkkey ();
|
||||||
|
while (pending_key == GRUB_TERM_NO_KEY)
|
||||||
{
|
{
|
||||||
grub_cpu_idle ();
|
grub_cpu_idle ();
|
||||||
grub_checkkey ();
|
grub_checkkey ();
|
||||||
}
|
}
|
||||||
|
ret = pending_key;
|
||||||
pending_key = GRUB_TERM_NO_KEY;
|
pending_key = GRUB_TERM_NO_KEY;
|
||||||
return pending_key;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue