slowly switching to astyle code formatting as recommended by the team

This commit is contained in:
Rohit Grover 2014-06-09 08:29:22 +01:00
parent 820e159489
commit 72b9fd2c77
3 changed files with 7 additions and 17 deletions

View file

@ -30,10 +30,8 @@
\endcode
*/
/**************************************************************************/
GapAdvertisingData::GapAdvertisingData(void) : _payload(),
_payloadLen(0),
_appearance(GENERIC_TAG)
{
GapAdvertisingData::GapAdvertisingData(void) : _payload(), _payloadLen(0), _appearance(GENERIC_TAG) {
/* empty */
}
/**************************************************************************/
@ -70,9 +68,7 @@ GapAdvertisingData::~GapAdvertisingData(void)
\endcode
*/
/**************************************************************************/
ble_error_t GapAdvertisingData::addData(DataType advDataType,
const uint8_t *payload,
uint8_t len)
ble_error_t GapAdvertisingData::addData(DataType advDataType, const uint8_t *payload, uint8_t len)
{
/* ToDo: Check if an AD type already exists and if the existing */
/* value is exclusive or not (flags, etc.) */

View file

@ -82,9 +82,7 @@
\endcode
*/
/**************************************************************************/
GapAdvertisingParams::GapAdvertisingParams(AdvertisingType advType,
uint16_t interval,
uint16_t timeout)
GapAdvertisingParams::GapAdvertisingParams(AdvertisingType advType, uint16_t interval, uint16_t timeout)
{
_advType = advType;
_interval = interval;

View file

@ -64,10 +64,7 @@
@endcode
*/
/**************************************************************************/
UUID::UUID(const LongUUID_t longUUID) :
type(UUID_TYPE_SHORT),
baseUUID(),
shortUUID(0)
UUID::UUID(const LongUUID_t longUUID) : type(UUID_TYPE_SHORT), baseUUID(), shortUUID(0)
{
memcpy(baseUUID, longUUID, LENGTH_OF_LONG_UUID);
shortUUID = (uint16_t)((longUUID[2] << 8) | (longUUID[3]));
@ -101,9 +98,8 @@ UUID::UUID(const LongUUID_t longUUID) :
The 16-bit BLE UUID value.
*/
/**************************************************************************/
UUID::UUID(uint16_t shortUUID) : type(UUID_TYPE_SHORT),
baseUUID(),
shortUUID(shortUUID) {
UUID::UUID(ShortUUID_t shortUUID) : type(UUID_TYPE_SHORT), baseUUID(), shortUUID(shortUUID)
{
/* empty */
}