/
11111
1
Fork of nRF51822 by
Diff: nRF51ServiceDiscovery.cpp
- Revision:
- 346:14b090482fd2
- Parent:
- 345:dfde56236c36
- Child:
- 347:b5d18c33fd8a
--- a/nRF51ServiceDiscovery.cpp Fri Jun 19 15:55:35 2015 +0100 +++ b/nRF51ServiceDiscovery.cpp Fri Jun 19 15:55:35 2015 +0100 @@ -227,9 +227,10 @@ .uuid = BLE_UUID_CHARACTERISTIC, .type = BLE_UUID_TYPE_BLE, }; - ble_gattc_handle_range_t handleRange = { }; - handleRange.start_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle(); - handleRange.end_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle() + 1; + ble_gattc_handle_range_t handleRange = { + .start_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle(), + .end_handle = parentDiscoveryObject->characteristics[charIndex].getDeclHandle() + 1, + }; if (sd_ble_gattc_char_value_by_uuid_read(parentDiscoveryObject->connHandle, &uuid, &handleRange) == NRF_SUCCESS) { return; }