projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common, menu: do not trigger timeout again, if a line is read
[oweals/u-boot.git]
/
common
/
menu.c
diff --git
a/common/menu.c
b/common/menu.c
index 754a9f9d06a1ecf7e4847689964dd383e7d457aa..aa16c9a199d772f7bd9971e401efdb883bf06895 100644
(file)
--- a/
common/menu.c
+++ b/
common/menu.c
@@
-236,8
+236,10
@@
static inline int menu_interactive_choice(struct menu *m, void **choice)
if (readret >= 0) {
choice_item = menu_item_by_key(m, cbuf);
- if (!choice_item)
+ if (!choice_item)
{
printf("%s not found\n", cbuf);
+ m->timeout = 0;
+ }
} else {
puts("^C\n");
return -EINTR;