From 4ec44d75e3bc52ac66ce1f5c77dec73a4b514b09 Mon Sep 17 00:00:00 2001 From: Andrew Fernandes Date: Fri, 10 Jul 2015 11:51:09 -0400 Subject: [PATCH] Change DiscoveredCharacteristic API to return long or short UUIDs. --- source/nRF51ServiceDiscovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nRF51ServiceDiscovery.cpp b/source/nRF51ServiceDiscovery.cpp index b89c585..c694d41 100644 --- a/source/nRF51ServiceDiscovery.cpp +++ b/source/nRF51ServiceDiscovery.cpp @@ -117,7 +117,7 @@ nRF51ServiceDiscovery::progressCharacteristicDiscovery(void) /* Iterate through the previously discovered characteristics cached in characteristics[]. */ while ((state == CHARACTERISTIC_DISCOVERY_ACTIVE) && (characteristicIndex < numCharacteristics)) { if ((matchingCharacteristicUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) || - ((matchingCharacteristicUUID == characteristics[characteristicIndex].getShortUUID()) && + ((matchingCharacteristicUUID == characteristics[characteristicIndex].getUUID()) && (matchingServiceUUID != UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)))) { if (characteristicCallback) { characteristicCallback(&characteristics[characteristicIndex]);