[U-Boot] [PATCH] common, menu: do not trigger timeout again, if a line is read
Jason Hobbs
jason.hobbs at calxeda.com
Tue Jan 17 13:47:07 CET 2012
Dear Heiko,
On Tue, Jan 17, 2012 at 03:24:29AM -0500, Heiko Schocher wrote:
> Signed-off-by: Heiko Schocher <hs at denx.de>
> Cc: Jason Hobbs <jason.hobbs at calxeda.com>
Acked-by: Jason Hobbs <jason.hobbs at calxeda.com>
> ---
> common/menu.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/common/menu.c b/common/menu.c
> index 754a9f9..aa16c9a 100644
> --- 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;
> --
> 1.7.7.4
>
More information about the U-Boot
mailing list