shell; initialize console at shell_task_init().
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/4eaca971 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/4eaca971 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/4eaca971 Branch: refs/heads/sterly_refactor Commit: 4eaca9712004959e820bfc3f9e4f68dc0f344edc Parents: 7479341 Author: Marko Kiiskila <[email protected]> Authored: Fri Jul 29 13:34:09 2016 -0700 Committer: Sterling Hughes <[email protected]> Committed: Sun Jul 31 21:58:57 2016 -0700 ---------------------------------------------------------------------- libs/shell/src/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/4eaca971/libs/shell/src/shell.c ---------------------------------------------------------------------- diff --git a/libs/shell/src/shell.c b/libs/shell/src/shell.c index 4b95a2b..d38573c 100644 --- a/libs/shell/src/shell.c +++ b/libs/shell/src/shell.c @@ -454,7 +454,6 @@ shell_task_func(void *arg) struct os_event *ev; console_rdy_ev.ev_type = OS_EVENT_T_CONSOLE_RDY; - console_init(shell_console_rx_cb); while (1) { ev = os_eventq_get(&shell_evq); @@ -573,6 +572,8 @@ shell_task_init(uint8_t prio, os_stack_t *stack, uint16_t stack_size, os_eventq_init(&shell_evq); os_mqueue_init(&g_shell_nlip_mq, NULL); + console_init(shell_console_rx_cb); + rc = os_task_init(&shell_task, "shell", shell_task_func, NULL, prio, OS_WAIT_FOREVER, stack, stack_size); if (rc != 0) {
