]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cli_readline.c
common: add call to show_activity() in main cmd loop
[karo-tx-uboot.git] / common / cli_readline.c
index 9a9fb35b712b09c8a9a416796c6df1ea27c7f1a0..4e821a5cfcf0c963b16b13041372b1896e551851 100644 (file)
@@ -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')) {