You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2017/02/23 22:33:29 UTC

[35/50] incubator-mynewt-core git commit: BLE Host - Remove extraneous indentation.

BLE Host - Remove extraneous indentation.


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

Branch: refs/heads/sensors_branch
Commit: a42c0c10952f3319e1f8834f863f956de2e8a487
Parents: b967568
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Feb 21 09:19:13 2017 -0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Feb 21 09:19:13 2017 -0800

----------------------------------------------------------------------
 net/nimble/host/src/ble_gap.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a42c0c10/net/nimble/host/src/ble_gap.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_gap.c b/net/nimble/host/src/ble_gap.c
index 22462b4..92c3d12 100644
--- a/net/nimble/host/src/ble_gap.c
+++ b/net/nimble/host/src/ble_gap.c
@@ -2818,15 +2818,15 @@ ble_gap_validate_conn_params(const struct ble_gap_upd_params *params)
 
     /* Requirements from Bluetooth spec. v4.2 [Vol 2, Part E], 7.8.18 */
     if (params->itvl_min > params->itvl_max) {
-            return false;
+        return false;
     }
 
     if (params->itvl_min < 0x0006 || params->itvl_max > 0x0C80) {
-            return false;
+        return false;
     }
 
     if (params->latency > 0x01F3) {
-            return false;
+        return false;
     }
 
     if (params->supervision_timeout <=
@@ -2869,7 +2869,7 @@ ble_gap_update_params(uint16_t conn_handle,
 
     /* Validate parameters with a spec */
     if (!ble_gap_validate_conn_params(params)) {
-            return BLE_HS_EINVAL;
+        return BLE_HS_EINVAL;
     }
 
     STATS_INC(ble_gap_stats, update);