You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/04/28 02:14:32 UTC

[33/50] [abbrv] incubator-mynewt-core git commit: console; instead of poking libs/os var g_os_started, use the provided API call.

console; instead of poking libs/os var g_os_started, use the provided API call.


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/88356a0d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/88356a0d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/88356a0d

Branch: refs/heads/master
Commit: 88356a0df1811e5905588116f6c7cab62764e6ad
Parents: 75d3220
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Apr 21 12:58:16 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Apr 21 12:58:16 2016 -0700

----------------------------------------------------------------------
 libs/console/full/src/cons_tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/88356a0d/libs/console/full/src/cons_tty.c
----------------------------------------------------------------------
diff --git a/libs/console/full/src/cons_tty.c b/libs/console/full/src/cons_tty.c
index b7320be..e7057a1 100644
--- a/libs/console/full/src/cons_tty.c
+++ b/libs/console/full/src/cons_tty.c
@@ -102,7 +102,7 @@ console_queue_char(char ch)
         /* TX needs to drain */
         hal_uart_start_tx(CONSOLE_UART);
         OS_EXIT_CRITICAL(sr);
-	if (g_os_started) {
+	if (os_started()) {
             os_time_delay(1);
 	}
         OS_ENTER_CRITICAL(sr);