]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common: add call to show_activity() in main cmd loop
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 16 Jul 2015 11:27:42 +0000 (13:27 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 16 Jul 2015 11:27:42 +0000 (13:27 +0200)
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')) {