Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
