smart ball test board code

Dependencies:   nrf51-sdk

Fork of nRF51822 by Nordic Semiconductor

Revision:
312:5d5abc30e3a8
Parent:
307:76e2e7349319
Child:
314:d579d093f23f
--- a/btle/btle_discovery.cpp	Fri Jun 19 15:55:30 2015 +0100
+++ b/btle/btle_discovery.cpp	Fri Jun 19 15:55:30 2015 +0100
@@ -247,11 +247,13 @@
     for (unsigned charIndex = 0; charIndex < numCharacteristics; charIndex++) {
         if (response->chars[charIndex].uuid.type == BLE_UUID_TYPE_UNKNOWN) {
             charUUIDDiscoveryQueue.enqueue(charIndex);
-            characteristics[charIndex].setup(*(const uint8_t *)(&response->chars[charIndex].char_props),
+            characteristics[charIndex].setup(connHandle,
+                                             *(const uint8_t *)(&response->chars[charIndex].char_props),
                                              response->chars[charIndex].handle_decl,
                                              response->chars[charIndex].handle_value);
         } else {
-            characteristics[charIndex].setup(response->chars[charIndex].uuid.uuid,
+            characteristics[charIndex].setup(connHandle,
+                                             response->chars[charIndex].uuid.uuid,
                                              *(const uint8_t *)(&response->chars[charIndex].char_props),
                                              response->chars[charIndex].handle_decl,
                                              response->chars[charIndex].handle_value);