white space cleanup

master
Rohit Grover 2014-05-23 13:12:52 +01:00
parent c1a43c52ad
commit 440699c764
3 changed files with 9 additions and 10 deletions

View File

@ -92,7 +92,7 @@ GapAdvertisingParams::GapAdvertisingParams(AdvertisingType advType,
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 @@ GapAdvertisingParams::GapAdvertisingParams(AdvertisingType advType,
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;

View File

@ -76,12 +76,11 @@ public:
*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;

View File

@ -90,7 +90,7 @@ UUID::UUID(uint8_t const uuid_base[16])
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 @@ ble_error_t UUID::update(uint8_t const uuid_base[16])
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;
}