mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
common: add possibility for readline_into_buffer timeout
add possibility to add a timeout when reading a line into a buffer. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Albert ARIBAUD
parent
2627c8c0a1
commit
9c3483113d
@@ -222,7 +222,8 @@ static inline int menu_interactive_choice(struct menu *m, void **choice)
|
||||
|
||||
menu_display(m);
|
||||
|
||||
readret = readline_into_buffer("Enter choice: ", cbuf);
|
||||
readret = readline_into_buffer("Enter choice: ", cbuf,
|
||||
m->timeout);
|
||||
|
||||
if (readret >= 0) {
|
||||
choice_item = menu_item_by_key(m, cbuf);
|
||||
|
Reference in New Issue
Block a user