You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/08/09 23:07:42 UTC
[08/42] incubator-mynewt-core git commit: console - Fix whitespace
issues.
console - Fix whitespace issues.
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/3ea48819
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3ea48819
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3ea48819
Branch: refs/heads/sterly_refactor
Commit: 3ea488197b461ad586fb0002338e3c9abd6f18ec
Parents: 18298ea
Author: Christopher Collins <cc...@apache.org>
Authored: Mon Aug 1 14:41:00 2016 -0700
Committer: Sterling Hughes <st...@apache.org>
Committed: Tue Aug 9 16:05:21 2016 -0700
----------------------------------------------------------------------
libs/console/full/src/cons_tty.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3ea48819/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 fb2015c..9c576e2 100644
--- a/libs/console/full/src/cons_tty.c
+++ b/libs/console/full/src/cons_tty.c
@@ -203,13 +203,13 @@ console_read(char *str, int cnt, int *newline)
break;
}
- if ((i & (CONSOLE_RX_CHUNK - 1)) == (CONSOLE_RX_CHUNK - 1)) {
- /*
- * Make a break from blocking interrupts during the copy.
- */
- OS_EXIT_CRITICAL(sr);
- OS_ENTER_CRITICAL(sr);
- }
+ if ((i & (CONSOLE_RX_CHUNK - 1)) == (CONSOLE_RX_CHUNK - 1)) {
+ /*
+ * Make a break from blocking interrupts during the copy.
+ */
+ OS_EXIT_CRITICAL(sr);
+ OS_ENTER_CRITICAL(sr);
+ }
ch = console_pull_char(cr);
if (ch == '\n') {