diff --git a/targets/zephyr/src/getline-zephyr.c b/targets/zephyr/src/getline-zephyr.c index b5fef0d45..b64489b8f 100644 --- a/targets/zephyr/src/getline-zephyr.c +++ b/targets/zephyr/src/getline-zephyr.c @@ -15,19 +15,20 @@ #include #include +#include #include #include "getline-zephyr.h" /* While app processes one input line, Zephyr will have another line buffer to accumulate more console input. */ -static struct uart_console_input line_bufs[2]; +static struct console_input line_bufs[2]; static struct k_fifo free_queue; static struct k_fifo used_queue; char *zephyr_getline(void) { - static struct uart_console_input *cmd; + static struct console_input *cmd; /* Recycle cmd buffer returned previous time */ if (cmd != NULL)