Skip to content
Snippets Groups Projects
Commit 00ac50e3 authored by Andreas Engel's avatar Andreas Engel Committed by Wolfgang Denk
Browse files

Make bootretry work when command line editing is enabled


Currently, when CONFIG_CMDLINE_EDITING is set, bootretry doesn't work.
This patch fixes the problem.

Signed-off-by: default avatarAndreas Engel <andreas.engel@ericsson.com>
parent 632de067
No related branches found
No related tags found
No related merge requests found
......@@ -709,6 +709,13 @@ static int cread_line(const char *const prompt, char *buf, unsigned int *len)
while (1) {
rlen = 1;
#ifdef CONFIG_BOOT_RETRY_TIME
while (!tstc()) { /* while no incoming data */
if (retry_time >= 0 && get_ticks() > endtime)
return (-2); /* timed out */
}
#endif
ichar = getcmd_getch();
if ((ichar == '\n') || (ichar == '\r')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment