No changes

Fork of nRF51822 by Nordic Semiconductor

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