aa

Dependents:   Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal

Fork of nRF51822 by Nordic Semiconductor

Revision:
264:5533ac0adf4b
Parent:
258:62d6bf03e6a4
Child:
272:c918f8a73f3f
--- a/btle/btle_discovery.cpp	Fri Jun 19 15:55:24 2015 +0100
+++ b/btle/btle_discovery.cpp	Fri Jun 19 15:55:24 2015 +0100
@@ -145,8 +145,8 @@
     }
 
     if (cDiscoveryActive) {
-        Gap::Handle_t startHandle = characteristics[characteristicIndex - 1].valueHandle + 1;
-        Gap::Handle_t endHandle   = services[serviceIndex].endHandle;
+        Gap::Handle_t startHandle = characteristics[characteristicIndex - 1].getValueHandle() + 1;
+        Gap::Handle_t endHandle   = services[serviceIndex].getEndHandle();
         resetDiscoveredCharacteristics();
 
         if (startHandle < endHandle) {
@@ -172,13 +172,13 @@
         }
 
         if (characteristicCallback) { /* characteristic discovery is optional. */
-            launchCharacteristicDiscovery(connHandle, services[serviceIndex].startHandle, services[serviceIndex].endHandle);
+            launchCharacteristicDiscovery(connHandle, services[serviceIndex].getStartHandle(), services[serviceIndex].getEndHandle());
         } else {
             serviceIndex++; /* Progress service index to keep discovery alive. */
         }
     }
     if (sDiscoveryActive && (numServices > 0) && (serviceIndex > 0)) {
-        Gap::Handle_t endHandle = services[serviceIndex - 1].endHandle;
+        Gap::Handle_t endHandle = services[serviceIndex - 1].getEndHandle();
         resetDiscoveredServices();
 
         if (sd_ble_gattc_primary_services_discover(connHandle, endHandle, NULL) != NRF_SUCCESS) {