iNEMO inertial module: 3D accelerometer and 3D gyroscope.

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   HelloWorld_ST_Sensors MOTENV_Mbed mbed-os-mqtt-client LSM6DSL_JS ... more

Revision:
5:77ec4781b110
Parent:
4:a00b29ed17c3
--- a/LSM6DSLSensor.h	Mon Mar 04 13:07:57 2019 +0000
+++ b/LSM6DSLSensor.h	Mon Mar 04 13:51:21 2019 +0000
@@ -282,7 +282,6 @@
      */
     uint8_t io_write(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite)
     {
-        int data;   
         if (_dev_spi) { 
             _dev_spi->lock();
             _cs_pin = 0;
@@ -305,13 +304,13 @@
     /* Helper classes. */
     DevI2C *_dev_i2c;
     SPI    *_dev_spi;
-    SPI_type_t _spi_type;
-    
+
     /* Configuration */
     uint8_t _address;
     DigitalOut  _cs_pin;        
     InterruptIn _int1_irq;
     InterruptIn _int2_irq;
+    SPI_type_t _spi_type;
     
     uint8_t _x_is_enabled;
     float _x_last_odr;