From f7b0e35c5fd0eaafa70ae662cff487555e7ce43a Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 24 Jan 2017 15:03:21 +0100 Subject: [PATCH] shell: If enabled, let's register telnet console as an input Change-Id: I476ca0f7914b02d2523a341560023c7e334d8b1b Signed-off-by: Tomasz Bursztyka --- subsys/shell/shell.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subsys/shell/shell.c b/subsys/shell/shell.c index 3ec2f725c31..68a9a4ee7c3 100644 --- a/subsys/shell/shell.c +++ b/subsys/shell/shell.c @@ -21,6 +21,9 @@ #ifdef CONFIG_UART_CONSOLE #include #endif +#ifdef CONFIG_TELNET_CONSOLE +#include +#endif #include @@ -526,6 +529,9 @@ void shell_init(const char *str) #ifdef CONFIG_UART_CONSOLE uart_register_input(&avail_queue, &cmds_queue, completion); #endif +#ifdef CONFIG_TELNET_CONSOLE + telnet_register_input(&avail_queue, &cmds_queue, completion); +#endif } /** @brief Optionally register an app default cmd handler.