
Version of the IKS01A1 library for this coursework
Dependencies: X_NUCLEO_COMMON
Fork of X_NUCLEO_IKS01A1 by
Revision 85:cb636b531652, committed 2016-06-01
- Comitter:
- Wolfgang Betz
- Date:
- Wed Jun 01 16:52:28 2016 +0200
- Parent:
- 84:7e38323c9488
- Child:
- 86:c5e05108d07b
- Commit message:
- Add protceted destructor to avoid deletion
Changed in this revision
x_nucleo_iks01a1.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/x_nucleo_iks01a1.h Wed Jun 01 16:40:49 2016 +0200 +++ b/x_nucleo_iks01a1.h Wed Jun 01 16:52:28 2016 +0200 @@ -83,6 +83,11 @@ protected: X_NUCLEO_IKS01A1(DevI2C *ext_i2c, PinName ff_irq_pin); + ~X_NUCLEO_IKS01A1(void) { + /* should never be called */ + error("Trial to delete X_NUCLEO_IKS01A1 singleton!\n"); + } + /** * @brief Initialize the singleton's sensors to default settings * @retval true if initialization successful,