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

Branch: refs/heads/develop
Commit: 1f8bbd8c08e127c63e931d7d8f5b1a025c39f00d
Parents: 21638d9
Author: Christopher Collins <[email protected]>
Authored: Mon Aug 1 14:41:00 2016 -0700
Committer: Christopher Collins <[email protected]>
Committed: Wed Aug 3 19:54:15 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/1f8bbd8c/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') {

Reply via email to