shell; call console_init() from shell task context instead of app main.
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/04cfd808 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/04cfd808 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/04cfd808 Branch: refs/heads/sterly_refactor Commit: 04cfd8082a9560b844ed1b52c8cc3a8ce8b99c10 Parents: ba37dff Author: Marko Kiiskila <[email protected]> Authored: Thu Jul 28 11:16:12 2016 -0700 Committer: Sterling Hughes <[email protected]> Committed: Wed Aug 3 14:57:50 2016 -0700 ---------------------------------------------------------------------- libs/shell/src/shell.c | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/04cfd808/libs/shell/src/shell.c ---------------------------------------------------------------------- diff --git a/libs/shell/src/shell.c b/libs/shell/src/shell.c index d38573c..115a62c 100644 --- a/libs/shell/src/shell.c +++ b/libs/shell/src/shell.c @@ -454,6 +454,7 @@ 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);
