Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: Ultrasound_And_IMU
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.h
- Revision:
- 44:36d12d319078
- Parent:
- 43:8120a1ff3055
- Child:
- 46:116dadbc80f1
--- a/Components/VL6180X/vl6180x_class.h Mon Mar 14 15:58:24 2016 +0000
+++ b/Components/VL6180X/vl6180x_class.h Tue Mar 15 12:51:39 2016 +0000
@@ -131,7 +131,9 @@
/** Destructor
*/
- virtual ~VL6180X(){}
+ virtual ~VL6180X(){
+ if (gpio1Int != NULL) delete gpio1Int;
+ }
/* warning: VL6180X class inherits from GenericSensor, RangeSensor and LightSensor, that haven`t a destructor.
The warning should request to introduce a virtual destructor to make sure to delete the object */
