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.
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/BlueNRGDevice.cpp
- Branch:
- 2819f05ab09fdabd46030bb6eab6b01aad1fa2db
- Revision:
- 271:7dc6261c33e5
- Parent:
- 253:9665a6f8bbdb
- Child:
- 273:00205952d841
diff -r ca649990a830 -r 7dc6261c33e5 source/BlueNRGDevice.cpp
--- a/source/BlueNRGDevice.cpp Thu Sep 15 10:51:32 2016 +0100
+++ b/source/BlueNRGDevice.cpp Thu Sep 15 10:51:33 2016 +0100
@@ -181,11 +181,9 @@
callback.call(&context);
return BLE_ERROR_ALREADY_INITIALIZED;
}
-
- /* ToDo: Clear memory contents, reset the SD, etc. */
+
// Init the BlueNRG/BlueNRG-MS stack
- // By default, we set the device GAP role to PERIPHERAL
- btleInit(BlueNRGGap::getInstance().getIsSetAddress(), GAP_PERIPHERAL_ROLE_IDB04A1);
+ btleInit();
isInitialized = true;
BLE::InitializationCompleteCallbackContext context = {
@@ -468,4 +466,4 @@
void BlueNRGDevice::enable_irq()
{
irq_.enable_irq();
-}
+}
\ No newline at end of file
