updates
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal-eddystone by
Revision 57:290a35cb9981, committed 2016-07-13
- Comitter:
- LancasterUniversity
- Date:
- Wed Jul 13 12:18:37 2016 +0100
- Parent:
- 56:1311cac15dda
- Child:
- 58:2ac8d45f1b08
- Commit message:
- Synchronized with git rev 94b4a29a
Changed in this revision
source/core/MicroBitDevice.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/core/MicroBitDevice.cpp Wed Jul 13 12:18:35 2016 +0100 +++ b/source/core/MicroBitDevice.cpp Wed Jul 13 12:18:37 2016 +0100 @@ -67,8 +67,12 @@ */ bool ble_running() { - uint8_t t; + uint8_t t = 0; + +#if CONFIG_ENABLED(MICROBIT_BLE_ENABLED) || CONFIG_ENABLED(MICROBIT_BLE_PAIRING_MODE) sd_softdevice_is_enabled(&t); +#endif + return t==1; }