BLE test

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
246:d73c4f798379
Parent:
245:6830f71c197c
Child:
247:932a44bdff4f
--- a/source/BlueNRGDevice.cpp	Mon Jun 20 17:53:36 2016 +0200
+++ b/source/BlueNRGDevice.cpp	Tue Jun 21 10:18:19 2016 +0200
@@ -110,12 +110,12 @@
 
     wait_us(500);
 
+    // Prepare communication between the host and the BlueNRG SPI interface
+    HCI_Init();
+
     // Set the interrupt handler for the device
     irq_.mode(PullDown); // set irq mode
     irq_.rise(&HCI_Isr);
-
-    // Prepare communication between the host and the BlueNRG SPI interface
-    HCI_Init();
 }
 
 /**************************************************************************/