Repository: incubator-mynewt-core Updated Branches: refs/heads/develop 1a14ba8b6 -> 42df7264b
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/42df7264 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/42df7264 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/42df7264 Branch: refs/heads/develop Commit: 42df7264b642ee037d068bfe773afa605d890a01 Parents: e931523 Author: Marko Kiiskila <[email protected]> Authored: Fri Jul 29 13:34:09 2016 -0700 Committer: Marko Kiiskila <[email protected]> Committed: Fri Jul 29 13:35:20 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/42df7264/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) {
