summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-12-27 00:12:28 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-13 02:38:01 +0100
commit48618e9b8b2a09486983a60efc7402f5d136f992 (patch)
tree94e4f882a1695936e27d5c6b33954ce93d214ce5 /cmd
parentdb0f298416fb76f939fbe3071cba73db4606b017 (diff)
downloadu-boot-48618e9b8b2a09486983a60efc7402f5d136f992.tar.gz
u-boot-48618e9b8b2a09486983a60efc7402f5d136f992.tar.xz
u-boot-48618e9b8b2a09486983a60efc7402f5d136f992.zip
cmd: conitrace: increase wait for next key
At 9600 baud or less a 1 ms wait is too short to detect the end of an escape sequence. Increase the wait duration to 10 ms which will work down to 1200 baud. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/conitrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/conitrace.c b/cmd/conitrace.c
index 811f5c68a9..d50f3bf3cc 100644
--- a/cmd/conitrace.c
+++ b/cmd/conitrace.c
@@ -30,8 +30,8 @@ static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc,
printf("%02x ", c);
first = false;
- /* 1 ms delay - serves to detect separate keystrokes */
- udelay(1000);
+ /* 10 ms delay - serves to detect separate keystrokes */
+ udelay(10000);
if (!tstc()) {
printf("\n");
first = true;