DiscoveredCharacteristicCallback now takes a pointer instead of a reference

This commit is contained in:
Rohit Grover 2015-06-02 08:58:54 +01:00
parent 3630fb0c8d
commit 83daae7c85

View file

@ -275,7 +275,7 @@ NordicServiceDiscovery::progressCharacteristicDiscovery(void)
if ((matchingCharacteristicUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) ||
(matchingCharacteristicUUID == characteristics[characteristicIndex].getShortUUID())) {
if (characteristicCallback) {
characteristicCallback(characteristics[characteristicIndex]);
characteristicCallback(&characteristics[characteristicIndex]);
}
}