fdsf
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 320:b1281aaf0076
- Parent:
- 319:cf62d065e70a
- Child:
- 321:3ece9d123429
diff -r cf62d065e70a -r b1281aaf0076 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,7 @@ if ((matchingServiceUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) || (matchingServiceUUID == services[serviceIndex].getUUID().getShortUUID())) { if (serviceCallback) { - serviceCallback(services[serviceIndex]); + serviceCallback(&services[serviceIndex]); } if ((state == SERVICE_DISCOVERY_ACTIVE) && characteristicCallback) {