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.