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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: nRF51ServiceDiscovery.cpp
- Revision:
- 347:b5d18c33fd8a
- Parent:
- 346:14b090482fd2
--- a/nRF51ServiceDiscovery.cpp Fri Jun 19 15:55:35 2015 +0100
+++ b/nRF51ServiceDiscovery.cpp Fri Jun 19 15:55:35 2015 +0100
@@ -227,10 +227,9 @@
.uuid = BLE_UUID_CHARACTERISTIC,
.type = BLE_UUID_TYPE_BLE,
};
- ble_gattc_handle_range_t handleRange = {
- .start_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle(),
- .end_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle() + 1,
- };
+ ble_gattc_handle_range_t handleRange = { };
+ handleRange.start_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle();
+ handleRange.end_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle() + 1;
if (sd_ble_gattc_char_value_by_uuid_read(parentDiscoveryObject->connHandle, &uuid, &handleRange) == NRF_SUCCESS) {
return;
}

