]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Make CONFIG_SHOW_ACTIVITY work with CONFIG_CMDLINE_EDITING support
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 8 Mar 2012 14:00:46 +0000 (15:00 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 8 Mar 2012 14:00:46 +0000 (15:00 +0100)
common/main.c

index 91e888fd3ce0a3ef54c1996d153538e76e78707c..773f34f74751165c21b5571f152974939536de46 100644 (file)
@@ -965,6 +965,13 @@ int readline_into_buffer(const char *const prompt, char *buffer, int timeout)
                if (prompt)
                        puts (prompt);
 
+#ifdef CONFIG_SHOW_ACTIVITY
+               while (!tstc()) {
+                       extern void show_activity(int arg);
+                       show_activity(0);
+                       WATCHDOG_RESET();
+               }
+#endif
                rc = cread_line(prompt, p, &len, timeout);
                return rc < 0 ? rc : len;