Clone of the nRF51822 repository from github The correct home is https://github.com/lancaster-university/nRF51822

Dependencies:   nrf51-sdk

Dependents:   microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more

Revision:
414:d92da8b4c30c
Parent:
388:db85a09c27ef
Child:
415:92bda1851be2
--- a/source/nRF5xGattClient.cpp	Mon Aug 10 15:18:44 2015 +0100
+++ b/source/nRF5xGattClient.cpp	Tue Aug 11 15:14:22 2015 +0100
@@ -16,10 +16,9 @@
 
 #include "nRF5xGattClient.h"
 
-nRF5xGattClient nRFGattClientSingleton;
-
 nRF5xGattClient &
 nRF5xGattClient::getInstance(void) {
+    static nRF5xGattClient nRFGattClientSingleton;
     return nRFGattClientSingleton;
 }