High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Fri May 23 13:12:52 2014 +0100
Parent:
42:06e75fee52cf
Child:
44:959ac8f4b3f7
Commit message:
white space cleanup

Changed in this revision

GapAdvertisingParams.cpp Show annotated file Show diff for this revision Revisions of this file
GapAdvertisingParams.h Show annotated file Show diff for this revision Revisions of this file
UUID.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GapAdvertisingParams.cpp	Fri May 23 11:08:43 2014 +0100
+++ b/GapAdvertisingParams.cpp	Fri May 23 13:12:52 2014 +0100
@@ -92,7 +92,7 @@
     if (_advType == ADV_CONNECTABLE_DIRECTED) {
         /* Interval must be 0 in directed connectable mode */
         _interval = 0;
-    } else if (_advType == ADV_NON_CONNECTABLE_UNDIRECTED)   {
+    } else if (_advType == ADV_NON_CONNECTABLE_UNDIRECTED) {
         /* Min interval is slightly larger than in other modes */
         if (_interval < GAP_ADV_PARAMS_INTERVAL_MIN_NONCON) {
             _interval = GAP_ADV_PARAMS_INTERVAL_MIN_NONCON;
@@ -100,7 +100,7 @@
         if (_interval > GAP_ADV_PARAMS_INTERVAL_MAX) {
             _interval = GAP_ADV_PARAMS_INTERVAL_MAX;
         }
-    } else   {
+    } else {
         /* Stay within interval limits */
         if (_interval < GAP_ADV_PARAMS_INTERVAL_MIN) {
             _interval = GAP_ADV_PARAMS_INTERVAL_MIN;
--- a/GapAdvertisingParams.h	Fri May 23 11:08:43 2014 +0100
+++ b/GapAdvertisingParams.h	Fri May 23 13:12:52 2014 +0100
@@ -76,12 +76,11 @@
                                          *Vol 6, Part B, Section 2.3.1.3 */
     };
 
-    GapAdvertisingParams(
-        AdvertisingType           advType =
-            GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED,
-        uint16_t                  interval =
-            GAP_ADV_PARAMS_INTERVAL_MIN_NONCON,
-        uint16_t                  timeout = 0);
+    GapAdvertisingParams(AdvertisingType advType  =
+                             GapAdvertisingParams::ADV_CONNECTABLE_UNDIRECTED,
+                         uint16_t        interval =
+                             GAP_ADV_PARAMS_INTERVAL_MIN_NONCON,
+                         uint16_t        timeout  = 0);
     virtual ~GapAdvertisingParams(void);
 
     virtual AdvertisingType getAdvertisingType(void) const;
--- a/UUID.cpp	Fri May 23 11:08:43 2014 +0100
+++ b/UUID.cpp	Fri May 23 13:12:52 2014 +0100
@@ -90,7 +90,7 @@
         uuid_base[8] + uuid_base[9] + uuid_base[10] + uuid_base[11] +
         uuid_base[12] + uuid_base[13] + uuid_base[14] + uuid_base[15] == 0) {
         type = UUID_TYPE_SHORT;
-    } else   {
+    } else {
         type = UUID_TYPE_LONG;
     }
 }
@@ -151,7 +151,7 @@
         uuid_base[8] + uuid_base[9] + uuid_base[10] + uuid_base[11] +
         uuid_base[12] + uuid_base[13] + uuid_base[14] + uuid_base[15] == 0) {
         type = UUID_TYPE_SHORT;
-    } else   {
+    } else {
         type = UUID_TYPE_LONG;
     }