Clone of the nRF51822 repository from github The correct home is https://github.com/lancaster-university/nRF51822
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
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;