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 nRF51822 by
Diff: btle/custom/custom_helper.cpp
- Revision:
- 13:b8251438f5c4
- Parent:
- 12:e151f55035b8
- Child:
- 15:11b0c15979d1
--- a/btle/custom/custom_helper.cpp Thu May 29 08:26:42 2014 +0100 +++ b/btle/custom/custom_helper.cpp Thu May 29 08:57:16 2014 +0100 @@ -86,16 +86,16 @@ ble_uuid_t custom_convert_to_nordic_uuid(const UUID &uuid) { ble_uuid_t nordicUUID = { - .uuid = uuid.value, + .uuid = uuid.get16BitUUID(), .type = BLE_UUID_TYPE_UNKNOWN /* to be set below */ }; - if (uuid.type == UUID::UUID_TYPE_SHORT) { + if (uuid.shortOrLong() == UUID::UUID_TYPE_SHORT) { nordicUUID.type = BLE_UUID_TYPE_BLE; } else { - if (!lookupConvertedUUIDTable(uuid.base, &nordicUUID.type)) { - nordicUUID.type = custom_add_uuid_base(uuid.base); - addToConvertedUUIDTable(uuid.base, nordicUUID.type); + if (!lookupConvertedUUIDTable(uuid.getBaseUUID(), &nordicUUID.type)) { + nordicUUID.type = custom_add_uuid_base(uuid.getBaseUUID()); + addToConvertedUUIDTable(uuid.getBaseUUID(), nordicUUID.type); } }