test
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 294:a2219bad9d4a
- Parent:
- 293:cd86acfe41be
- Child:
- 295:5566c7b83bb5
diff -r cd86acfe41be -r a2219bad9d4a btle/btle_discovery.cpp --- 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. */