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.
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 272:c918f8a73f3f
- Parent:
- 264:5533ac0adf4b
- Child:
- 273:8ada9e8111a3
diff -r 208d78ccc9b7 -r c918f8a73f3f btle/btle_discovery.cpp --- a/btle/btle_discovery.cpp Fri Jun 19 15:55:25 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:25 2015 +0100 @@ -171,7 +171,7 @@ serviceCallback(services[serviceIndex]); } - if (characteristicCallback) { /* characteristic discovery is optional. */ + if (sDiscoveryActive && characteristicCallback) { /* characteristic discovery is optional. */ launchCharacteristicDiscovery(connHandle, services[serviceIndex].getStartHandle(), services[serviceIndex].getEndHandle()); } else { serviceIndex++; /* Progress service index to keep discovery alive. */