nordic
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 295:a2219bad9d4a
- Parent:
- 294:cd86acfe41be
- Child:
- 296:5566c7b83bb5
--- a/btle/btle_discovery.cpp Fri Jun 19 15:55:28 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:28 2015 +0100 @@ -164,10 +164,13 @@ for (unsigned serviceIndex = 0; serviceIndex < numServices; serviceIndex++) { if (response->services[serviceIndex].uuid.type == BLE_UUID_TYPE_UNKNOWN) { serviceIndicesNeedingUUIDDiscovery.append(serviceIndex); + services[serviceIndex].setup(response->services[serviceIndex].handle_range.start_handle, + response->services[serviceIndex].handle_range.end_handle); + } else { + services[serviceIndex].setup(response->services[serviceIndex].uuid.uuid, + response->services[serviceIndex].handle_range.start_handle, + response->services[serviceIndex].handle_range.end_handle); } - services[serviceIndex].setup(response->services[serviceIndex].uuid.uuid, - response->services[serviceIndex].handle_range.start_handle, - response->services[serviceIndex].handle_range.end_handle); } /* Trigger discovery of service UUID if necessary. */