mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
common, menu: do not trigger timeout again, if a line is read
Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Jason Hobbs <jason.hobbs@calxeda.com> Acked-by: Jason Hobbs <jason.hobbs@calxeda.com>
This commit is contained in:
parent
317d6c57d5
commit
fc4fa6a16d
1 changed files with 3 additions and 1 deletions
|
@ -236,8 +236,10 @@ static inline int menu_interactive_choice(struct menu *m, void **choice)
|
||||||
if (readret >= 0) {
|
if (readret >= 0) {
|
||||||
choice_item = menu_item_by_key(m, cbuf);
|
choice_item = menu_item_by_key(m, cbuf);
|
||||||
|
|
||||||
if (!choice_item)
|
if (!choice_item) {
|
||||||
printf("%s not found\n", cbuf);
|
printf("%s not found\n", cbuf);
|
||||||
|
m->timeout = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
puts("^C\n");
|
puts("^C\n");
|
||||||
return -EINTR;
|
return -EINTR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue