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>
This commit is contained in:
parent
db0f298416
commit
48618e9b8b
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||||
printf("%02x ", c);
|
printf("%02x ", c);
|
||||||
first = false;
|
first = false;
|
||||||
|
|
||||||
/* 1 ms delay - serves to detect separate keystrokes */
|
/* 10 ms delay - serves to detect separate keystrokes */
|
||||||
udelay(1000);
|
udelay(10000);
|
||||||
if (!tstc()) {
|
if (!tstc()) {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
first = true;
|
first = true;
|
||||||
|
|
Loading…
Reference in a new issue