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.
Dependents: microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 322:788b6ac328b7
- Parent:
- 321:3ece9d123429
- Child:
- 323:7a9c8fa8042d
diff -r 3ece9d123429 -r 788b6ac328b7 btle/btle_discovery.cpp --- a/btle/btle_discovery.cpp Fri Jun 19 15:55:31 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:31 2015 +0100 @@ -311,7 +311,8 @@ while ((state == SERVICE_DISCOVERY_ACTIVE) && (serviceIndex < numServices)) { if ((matchingServiceUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) || (matchingServiceUUID == services[serviceIndex].getUUID().getShortUUID())) { - if (serviceCallback) { + + if (serviceCallback && (matchingCharacteristicUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN))) { serviceCallback(&services[serviceIndex]); }