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: X_NUCLEO_COMMON ST_INTERFACES
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,