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
Dependents: HelloWorld_ST_Sensors MOTENV_Mbed mbed-os-mqtt-client LSM6DSL_JS ... more
Revision 5:77ec4781b110, committed 2019-03-04
- Comitter:
- cparata
- Date:
- Mon Mar 04 13:51:21 2019 +0000
- Parent:
- 4:a00b29ed17c3
- Child:
- 6:1fcf5cb8d615
- Commit message:
- Fix warnings
Changed in this revision
| LSM6DSLSensor.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;