High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 43:ac154ac74a30, committed 2014-05-23
- 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
--- 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; }