[U-Boot] [PATCH 1/7] menu: only timeout when menu is displayed

Wolfgang Denk wd at denx.de
Thu Jun 21 22:34:17 CEST 2012


Dear Rob Herring,

In message <1332949898-6502-2-git-send-email-robherring2 at gmail.com> you wrote:
> From: Rob Herring <rob.herring at calxeda.com>
> 
> Make the menu timeout apply only when prompt flag is set and after the
> menu is displayed. This allows auto boot to work no matter whether prompt
> is set or cleared. Use the default selection if the menu times out.
> 
> This also fixes the timeout value given to readline_into_buffer to be
> seconds instead of 10th of seconds.
> 
> Old behavior:
> 
> if prompt
>   display menu and wait for choice
> else
>   wait for timeout
>   if key pressed
>     display menu and wait for choice
>   else
>     exit command
> 
> New behavior:
> 
> if prompt
>   display menu
>   if key pressed
>     wait for choice
>   else
>     boot default entry on timeout
> else
>   boot default entry
> 
> Signed-off-by: Rob Herring <rob.herring at calxeda.com>
> ---
>  common/menu.c |   36 ++++--------------------------------
>  1 files changed, 4 insertions(+), 32 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
We fight only when there is no other choice. We prefer  the  ways  of
peaceful contact.
	-- Kirk, "Spectre of the Gun", stardate 4385.3


More information about the U-Boot mailing list