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:
- 109:425faebc8201
- Parent:
- 97:e95e35845e1c
- Child:
- 119:3ba3e377b972
--- a/btle/custom/custom_helper.cpp Wed Apr 15 08:59:24 2015 +0100 +++ b/btle/custom/custom_helper.cpp Wed Apr 15 08:59:24 2015 +0100 @@ -93,10 +93,9 @@ */ ble_uuid_t custom_convert_to_nordic_uuid(const UUID &uuid) { - ble_uuid_t nordicUUID = { - .uuid = uuid.getShortUUID(), - .type = BLE_UUID_TYPE_UNKNOWN /* to be set below */ - }; + ble_uuid_t nordicUUID; + nordicUUID.uuid = uuid.getShortUUID(); + nordicUUID.type = BLE_UUID_TYPE_UNKNOWN; /* to be set below */ if (uuid.shortOrLong() == UUID::UUID_TYPE_SHORT) { nordicUUID.type = BLE_UUID_TYPE_BLE;