nordic
Fork of nRF51822 by
Diff: btle/custom/custom_helper.cpp
- Revision:
- 110:425faebc8201
- Parent:
- 98:e95e35845e1c
- Child:
- 120:3ba3e377b972
diff -r 27213b9fd4f9 -r 425faebc8201 btle/custom/custom_helper.cpp --- 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;