adaptation for bkap
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/BlueNRGDevice.cpp
- Branch:
- dc54644b61c51990e49672e5bbce3b95124d6364
- Revision:
- 273:00205952d841
- Parent:
- 264:1e754a01869e
- Parent:
- 271:7dc6261c33e5
- Child:
- 278:a5209d8cfd61
--- a/source/BlueNRGDevice.cpp Thu Sep 15 10:51:26 2016 +0100 +++ b/source/BlueNRGDevice.cpp Thu Sep 15 10:51:36 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 = {