X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=common%2Fcli_readline.c;h=4c7a849862f227827de77546446643d5b9db4e02;hb=53b6c1e8bb0f6592341650ea1af5e01101e9b71a;hp=9a9fb35b712b09c8a9a416796c6df1ea27c7f1a0;hpb=9a650bfec34c10baf673f9ab95f00dec7210e8c6;p=karo-tx-uboot.git diff --git a/common/cli_readline.c b/common/cli_readline.c index 9a9fb35b71..4c7a849862 100644 --- a/common/cli_readline.c +++ b/common/cli_readline.c @@ -272,6 +272,12 @@ static int cread_line(const char *const prompt, char *buf, unsigned int *len, first = 0; } +#ifdef CONFIG_SHOW_ACTIVITY + while (!tstc()) { /* while no incoming data */ + show_activity(0); + WATCHDOG_RESET(); + } +#endif ichar = getcmd_getch(); if ((ichar == '\n') || (ichar == '\r')) { @@ -597,7 +603,7 @@ int cli_readline_into_buffer(const char *const prompt, char *buffer, puts(tab_seq + (col & 07)); col += 8 - (col & 07); } else { - char buf[2]; + char __maybe_unused buf[2]; /* * Echo input using puts() to force an