removed X-NUCLEO-COMMON and ST-INTERFACES

Dependents:   unh-hackathon-example unh-hackathon-example-raw

Fork of X_NUCLEO_IKS01A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
Wolfgang Betz
Date:
Wed Jun 01 16:33:19 2016 +0200
Parent:
81:57cbcfdd54fa
Child:
84:7e38323c9488
Commit message:
Merge commit '54f2b749582b2c36bfc4a2356e3df149b4d8d5f3' into betzw_wb

Changed in this revision

X_NUCLEO_COMMON.lib Show annotated file Show diff for this revision Revisions of this file
x_nucleo_iks01a1.h Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_COMMON.lib	Thu Sep 03 13:17:36 2015 +0200
+++ b/X_NUCLEO_COMMON.lib	Wed Jun 01 16:33:19 2016 +0200
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/X_NUCLEO_COMMON/#527e203b709b
+https://developer.mbed.org/teams/ST/code/X_NUCLEO_COMMON/#da29b5403ca1
--- a/x_nucleo_iks01a1.h	Thu Sep 03 13:17:36 2015 +0200
+++ b/x_nucleo_iks01a1.h	Wed Jun 01 16:33:19 2016 +0200
@@ -119,6 +119,16 @@
 					  PinName ff_irq_pin = IKS01A1_PIN_FF);
 	static X_NUCLEO_IKS01A1* Instance(PinName sda, PinName scl, PinName ff_irq_pin = NC);
 
+	/**
+ 	* @brief      Destructor
+	*/	
+	~X_NUCLEO_IKS01A1(){
+		//if(dev_i2c!=NULL){ delete dev_i2c; dev_i2c=0; }  how to understand if dev_i2c is locally allocated (so it must be deleted) or comes from constructors args?
+   		if(ht_sensor!=NULL){ delete ht_sensor; ht_sensor=NULL; }
+   		if(magnetometer!=NULL){ delete magnetometer; magnetometer=NULL; }
+   		if(pt_sensor!=NULL){ delete pt_sensor; pt_sensor=NULL; }          		
+	}
+
 	DevI2C  *dev_i2c;
 
 	HTS221  *ht_sensor;