Merge branch 'master' of https://github.com/adfernandes/nRF51822 into afernandes
This commit is contained in:
commit
c0a8c6b544
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ nRF5xServiceDiscovery::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]);
|
||||
|
@ -154,7 +154,7 @@ nRF5xServiceDiscovery::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]);
|
||||
|
|
Loading…
Reference in a new issue