Clone of the nRF51822 repository from github The correct home is https://github.com/lancaster-university/nRF51822
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Diff: source/nRF5xn.cpp
- Revision:
- 461:1f352d938a33
- Parent:
- 459:98c44deafc70
- Child:
- 463:b869f947a37a
--- a/source/nRF5xn.cpp Mon Nov 02 09:05:11 2015 +0000 +++ b/source/nRF5xn.cpp Mon Nov 02 17:34:04 2015 +0000 @@ -104,7 +104,12 @@ 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