Nordic stack and drivers for the mbed BLE API. Version to work around build bug.

Dependents:   microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter

Fork of nRF51822 by Nordic Semiconductor

Revision:
563:9c4b96f7be8d
Parent:
562:0d32ae12429e
Child:
565:cf03471a4ec4
--- a/source/nRF5xGap.cpp	Mon Jan 11 10:19:15 2016 +0000
+++ b/source/nRF5xGap.cpp	Mon Jan 11 10:19:16 2016 +0000
@@ -23,9 +23,6 @@
 
 nRF5xGap &nRF5xGap::getInstance() {
     static nRF5xGap m_instance;
-    if (gapInstance == NULL) {
-        gapInstance = &m_instance;
-    }
     return m_instance;
 }
 
@@ -341,29 +338,6 @@
 
 /**************************************************************************/
 /*!
-    @brief  Clear nRF5xGap's state.
-
-    @returns    ble_error_t
-
-    @retval     BLE_ERROR_NONE
-                Everything executed properly
-*/
-/**************************************************************************/
-ble_error_t nRF5xGap::cleanup(void)
-{
-    /* Clear all state that is from the parent, including private members */
-    if (Gap::cleanup() != BLE_ERROR_NONE) {
-        return BLE_ERROR_INVALID_STATE;
-    }
-
-    /* Clear derived class members */
-    m_connectionHandle = BLE_CONN_HANDLE_INVALID;
-
-    return BLE_ERROR_NONE;
-}
-
-/**************************************************************************/
-/*!
     @brief  Sets the 16-bit connection handle
 */
 /**************************************************************************/