Suppressed conflicting destructor function.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Dependents: D7A_1x_TRAINING D7_MLX_AND_BAT D7A_1x_demo_sensors_v3
Fork of X_NUCLEO_IKS01A1 by
Diff: x_nucleo_iks01a1.h
- Revision:
- 84:7e38323c9488
- Parent:
- 83:815e293d073b
- Child:
- 85:cb636b531652
--- a/x_nucleo_iks01a1.h Wed Jun 01 16:33:19 2016 +0200 +++ b/x_nucleo_iks01a1.h Wed Jun 01 16:40:49 2016 +0200 @@ -119,16 +119,6 @@ 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;