BLE_API wrapper library for STMicroelectronics' BlueNRG Bluetooth Low Energy expansion board shield

Fork of X_NUCLEO_IDB0XA1 by ST Expansion SW Team

Revision:
168:ad1dff5dca1f
Parent:
167:abc42e7158a6
Child:
169:485bbcddf0c3
--- a/source/BlueNRGDevice.cpp	Wed Nov 04 10:12:19 2015 +0100
+++ b/source/BlueNRGDevice.cpp	Wed Nov 04 14:23:19 2015 +0100
@@ -96,10 +96,9 @@
                              PinName sck,
                              PinName cs,
                              PinName rst,
-                             PinName irq) : spi_(mosi, miso, sck), nCS_(cs), rst_(rst), irq_(irq)
+                             PinName irq) : 
+	isInitialized(false), spi_(mosi, miso, sck), nCS_(cs), rst_(rst), irq_(irq)
 {
-    isInitialized = false;
-	
     // Setup the spi for 8 bit data, low clock polarity,
     // 1-edge phase, with an 8MHz clock rate
     spi_.format(8, 0);
@@ -141,8 +140,6 @@
 	irq_.mode(PullNone); // betzw: set irq mode
 	irq_.rise(&HCI_Isr);
 
-	instanceID = instanceID;
-
 	/* ToDo: Clear memory contents, reset the SD, etc. */
 	// By default, we set the device GAP role to PERIPHERAL
 	btle_init(BlueNRGGap::getInstance().getIsSetAddress(), GAP_PERIPHERAL_ROLE_IDB04A1);