Revised to disable BLE for radio communication as needed.

Dependencies:   BLE_API nRF51822 mbed-dev-bin

Dependents:   microbit

Revision:
65:f7ebabf23e15
Parent:
57:290a35cb9981
Child:
66:2fc7d7c2fffc
diff -r 98cb56bf7711 -r f7ebabf23e15 source/core/MicroBitDevice.cpp
--- a/source/core/MicroBitDevice.cpp	Wed Jul 13 12:18:43 2016 +0100
+++ b/source/core/MicroBitDevice.cpp	Wed Jul 13 12:18:45 2016 +0100
@@ -67,12 +67,8 @@
   */
 bool ble_running()
 {
-    uint8_t t = 0;
-
-#if CONFIG_ENABLED(MICROBIT_BLE_ENABLED) || CONFIG_ENABLED(MICROBIT_BLE_PAIRING_MODE)
+    uint8_t t;
     sd_softdevice_is_enabled(&t);
-#endif
-
     return t==1;
 }