From 341bc03c4c1ec58fab667a89142692633b9847c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Thu, 8 Mar 2012 15:00:46 +0100 Subject: [PATCH] Make CONFIG_SHOW_ACTIVITY work with CONFIG_CMDLINE_EDITING support --- common/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/main.c b/common/main.c index 91e888fd3c..773f34f747 100644 --- a/common/main.c +++ b/common/main.c @@ -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; -- 2.39.5