Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 */
}
