[U-Boot] [PATCH] common, menu: do not trigger timeout again, if a line is read

Mike Frysinger vapier at gentoo.org
Tue Jan 17 20:16:33 CET 2012


On Tuesday 17 January 2012 03:24:29 Heiko Schocher wrote:
> --- a/common/menu.c
> +++ b/common/menu.c
>  			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;

the summary says "do not timeout again if a line is read", but this C code 
seems like "do not timeout again if an item was selected but not found".  but 
maybe i'm reading the menu code incorrectly ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120117/425e91f8/attachment.pgp>


More information about the U-Boot mailing list