Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
Fork of BLE_API by
Diff: UUID.cpp
- Revision:
- 76:103fac6e36d1
- Parent:
- 67:0fac4e99f29b
--- a/UUID.cpp Fri Jun 06 14:14:46 2014 +0100 +++ b/UUID.cpp Mon Jun 09 08:29:22 2014 +0100 @@ -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 @@ 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 */ }