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/21 20:10:41 UTC
incubator-mynewt-core git commit: console;
don't call os_time_delay() when OS is not running. This was asserting
when there was a lot of output to console before OS starts.
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 0892fd98e -> 75d322055
console; don't call os_time_delay() when OS is not running.
This was asserting when there was a lot of output to console before
OS starts.
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/75d32205
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/75d32205
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/75d32205
Branch: refs/heads/develop
Commit: 75d32205598f9e10037f6ce3feacdcf3e9a91c42
Parents: 0892fd9
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Thu Apr 21 11:04:53 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Thu Apr 21 11:04:53 2016 -0700
----------------------------------------------------------------------
libs/console/full/src/cons_tty.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/75d32205/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 d43f4b9..b7320be 100644
--- a/libs/console/full/src/cons_tty.c
+++ b/libs/console/full/src/cons_tty.c
@@ -102,7 +102,9 @@ console_queue_char(char ch)
/* TX needs to drain */
hal_uart_start_tx(CONSOLE_UART);
OS_EXIT_CRITICAL(sr);
- os_time_delay(1);
+ if (g_os_started) {
+ os_time_delay(1);
+ }
OS_ENTER_CRITICAL(sr);
}
console_add_char(&ct->ct_tx, ch);