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 nRF51822-bluetooth-mdw
Fork of microbit-dal by
Diff: source/drivers/MicroBitRadio.cpp
- Revision:
- 23:6055f6c19fa6
- Parent:
- 22:23d7b9a4b082
- Child:
- 25:27299423d813
--- a/source/drivers/MicroBitRadio.cpp Wed Jul 13 12:17:54 2016 +0100
+++ b/source/drivers/MicroBitRadio.cpp Wed Jul 13 12:17:56 2016 +0100
@@ -99,7 +99,7 @@
{
this->id = id;
this->status = 0;
- this->group = MICROBIT_RADIO_DEFAULT_GROUP;
+ this->group = 0;
this->queueDepth = 0;
this->rssi = 0;
this->rxQueue = NULL;
@@ -279,7 +279,7 @@
NRF_RADIO->BASE0 = MICROBIT_RADIO_BASE_ADDRESS;
// Join the default group. This will configure the remaining byte in the RADIO hardware module.
- setGroup(this->group);
+ setGroup(MICROBIT_RADIO_DEFAULT_GROUP);
// The RADIO hardware module supports the use of multiple addresses, but as we're running anonymously, we only need one.
// Configure the RADIO module to use the default address (address 0) for both send and receive operations.
@@ -356,9 +356,6 @@
// 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;
}
