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 9a9fb35..4e821a5 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')) {