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.
Dependencies: nrf51-sdk
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 295:5566c7b83bb5
- Parent:
- 294:a2219bad9d4a
- Child:
- 296:8d25fe68d731
--- 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
@@ -112,7 +112,7 @@
while (numIndices) { /* loop until a call to char_value_by_uuid_read() succeeds or we run out of pending indices. */
parentContainer->state = DISCOVER_SERVICE_UUIDS;
- unsigned serviceIndex = serviceIndices[0]; /* we chose to use the first index; we could just as easily have chosen the last. */
+ unsigned serviceIndex = getFirst();
ble_uuid_t uuid = {
.uuid = BLE_UUID_SERVICE_PRIMARY,
.type = BLE_UUID_TYPE_BLE,
