https://github.com/WebBluetoothCG/demos/pull/42
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal by
Diff: source/drivers/MicroBitRadio.cpp
- Revision:
- 18:e2f92ac26450
- Parent:
- 1:8aa5cdb4ab67
- Child:
- 19:ebc07f856999
--- a/source/drivers/MicroBitRadio.cpp Wed Jul 13 12:17:42 2016 +0100 +++ b/source/drivers/MicroBitRadio.cpp Wed Jul 13 12:17:48 2016 +0100 @@ -356,6 +356,9 @@ // deregister ourselves from the callback event used to empty the receive queue. fiber_remove_idle_component(this); + // record that the radio is now disabled + status &= ~MICROBIT_RADIO_STATUS_INITIALISED; + return MICROBIT_OK; } @@ -509,4 +512,4 @@ NVIC_EnableIRQ(RADIO_IRQn); return MICROBIT_OK; -} +} \ No newline at end of file