use VL6180XA1 chip wothout X-NUCLEO-6180XA1 Board. Simple way to use the chip.

Dependents:   Check_VL6180XA1_ToF

Fork of X_NUCLEO_6180XA1 by ST

Files at this revision

API Documentation at this revision

Comitter:
mapellil
Date:
Tue Mar 15 12:51:39 2016 +0000
Parent:
43:8120a1ff3055
Child:
45:70e4abd970a9
Commit message:
fixed vl6180x destructor

Changed in this revision

Components/VL6180X/vl6180x_class.h Show annotated file Show diff for this revision Revisions of this file
--- 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 */