INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Revision 44:36d12d319078, committed 2016-03-15
- 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 */