No changes

Fork of nRF51822 by Nordic Semiconductor

Revision:
424:28ea27dcba79
Parent:
423:9bf22621d592
Child:
429:bff56e081b6e
diff -r 9bf22621d592 -r 28ea27dcba79 source/nRF5xGattClient.cpp
--- a/source/nRF5xGattClient.cpp	Thu Aug 13 13:23:18 2015 +0100
+++ b/source/nRF5xGattClient.cpp	Thu Aug 13 13:23:18 2015 +0100
@@ -16,13 +16,13 @@
 
 #include "nRF5xGattClient.h"
 
-nRF5xGattClient nRFGattClientSingleton;
-
 nRF5xGattClient &
 nRF5xGattClient::getInstance(void) {
+    static nRF5xGattClient nRFGattClientSingleton;
     return nRFGattClientSingleton;
 }
 
+#if !defined(MCU_NORDIC_16K_S110) && !defined(MCU_NORDIC_32K_S110)
 ble_error_t
 nRF5xGattClient::launchServiceDiscovery(Gap::Handle_t                               connectionHandle,
                                         ServiceDiscovery::ServiceCallback_t         sc,
@@ -31,4 +31,5 @@
                                         const UUID                                 &matchingCharacteristicUUIDIn)
 {
     return discovery.launch(connectionHandle, sc, cc, matchingServiceUUIDIn, matchingCharacteristicUUIDIn);
-}
\ No newline at end of file
+}
+#endif
\ No newline at end of file