nRF51ServiceDiscovery should be able to match short AND long UUIDs.

This commit is contained in:
Andrew Fernandes 2015-07-11 15:07:00 -04:00
parent 4ec44d75e3
commit 2e68655044
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ nRF51ServiceDiscovery::progressServiceDiscovery(void)
/* Iterate through the previously discovered services cached in services[]. */
while ((state == SERVICE_DISCOVERY_ACTIVE) && (serviceIndex < numServices)) {
if ((matchingServiceUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) ||
(matchingServiceUUID == services[serviceIndex].getUUID().getShortUUID())) {
(matchingServiceUUID == services[serviceIndex].getUUID())) {
if (serviceCallback && (matchingCharacteristicUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN))) {
serviceCallback(&services[serviceIndex]);