For with fix for disconnection notifications

Fork of nRF51822 by Nordic Semiconductor

Revision:
56:a1071b629aa3
Parent:
52:120bd37b9d0d
diff -r 1e5c300cec7f -r a1071b629aa3 nRF51822n.cpp
--- a/nRF51822n.cpp	Fri Jul 25 10:33:52 2014 +0100
+++ b/nRF51822n.cpp	Tue Sep 02 15:50:05 2014 +0100
@@ -19,6 +19,7 @@
 #include "nrf_soc.h"
 
 #include "btle/btle.h"
+#include "nrf_delay.h"
 
 /**
  * The singleton which represents the nRF51822 transport for the BLEDevice.
@@ -133,10 +134,10 @@
 /**************************************************************************/
 ble_error_t nRF51822n::reset(void)
 {
-    wait(0.5);
+    nrf_delay_us(500000);
 
     /* Wait for the radio to come back up */
-    wait(1);
+    nrf_delay_us(1000000);
 
     return BLE_ERROR_NONE;
 }