[U-Boot] [PATCH v5 4/5] samsung: misc: menu: increase delay in menu main loop

Przemyslaw Marczak p.marczak at samsung.com
Wed Apr 30 13:28:09 CEST 2014


Increase menu loop delay to 200 ms helps choose the right
menu option by user. Before this, each time key was pressed
the current menu option was changed few times.
Now it changes only once and also changes few times if key
is pressed for a longer time.

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
Cc: Minkyu Kang <mk7.kang at samsung.com>

---
Changes v2:
- new commit

Changes v3:
- correct commit message

Changes v4:
- none

Changes v5:
- move mdelay() from check_keys() to menu loop
- update commit msg

---
 board/samsung/common/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 65b5c30..2ea275e 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -285,7 +285,7 @@ static void download_menu(void)
 			display_download_menu(mode);
 
 		last_mode = mode;
-		mdelay(100);
+		mdelay(200);
 
 		key = check_keys();
 		switch (key) {
-- 
1.9.1



More information about the U-Boot mailing list