From: Lothar Waßmann Date: Wed, 19 Aug 2015 11:25:01 +0000 (+0200) Subject: common: add call to show_activity() in main cmd loop X-Git-Tag: KARO-TX6-2015-09-18~4034^2~4 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=4e981e4e56829bcf1e74bad4676a978b87245bcc common: add call to show_activity() in main cmd loop --- diff --git a/common/cli_readline.c b/common/cli_readline.c index 9a9fb35b71..4e821a5cfc 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')) {