https://developer.mbed.org/users/TheoHavercroft/code/nrf51-sdk/
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;