From f0d521f04c892259189bd71349265fa67cc93edd Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Mon, 2 Nov 2015 17:04:47 +0000 Subject: [PATCH 1/2] Ensure that the initialization flags is set to false if the BLE stack is shutdown properly. --- source/nRF5xn.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/nRF5xn.cpp b/source/nRF5xn.cpp index de7e707..d505753 100644 --- a/source/nRF5xn.cpp +++ b/source/nRF5xn.cpp @@ -104,7 +104,12 @@ ble_error_t nRF5xn::shutdown(void) return BLE_ERROR_INITIALIZATION_INCOMPLETE; } - return (softdevice_handler_sd_disable() == NRF_SUCCESS) ? BLE_ERROR_NONE : BLE_STACK_BUSY; + if(softdevice_handler_sd_disable() != NRF_SUCCESS) { + return BLE_STACK_BUSY; + } + + initialized = false; + return BLE_ERROR_NONE; } void From ba7ac12db5aa445ea68d04c73214a50128bebf73 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Mon, 2 Nov 2015 17:29:17 +0000 Subject: [PATCH 2/2] version v2.0.1 --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index b525337..6052117 100644 --- a/module.json +++ b/module.json @@ -1,6 +1,6 @@ { "name": "ble-nrf51822", - "version": "2.0.0", + "version": "2.0.1", "description": "Nordic stack and drivers for the mbed BLE API.", "keywords": [ "Bluetooth",