Skip to content

Commit

Permalink
Merge pull request #6 from cparata/master
Browse files Browse the repository at this point in the history
Fix compilation warnings
  • Loading branch information
cparata authored Nov 27, 2017
2 parents 5864909 + 32fcf5c commit e9ab495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/LSM6DSLSensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include "Arduino.h"
#include "Wire.h"
#include "LSM6DSLSensor.h"
#include "LSM6DSL_ACC_GYRO_Driver.h"


/* Class Implementation ------------------------------------------------------*/
Expand Down Expand Up @@ -111,7 +110,7 @@ LSM6DSLSensor::LSM6DSLSensor(TwoWire *i2c) : dev_i2c(i2c)
* @param i2c object of an helper class which handles the I2C peripheral
* @param address the address of the component's instance
*/
LSM6DSLSensor::LSM6DSLSensor(TwoWire *i2c, uint8_t address) : address(address), dev_i2c(i2c)
LSM6DSLSensor::LSM6DSLSensor(TwoWire *i2c, uint8_t address) : dev_i2c(i2c), address(address)
{
/* Enable register address automatically incremented during a multiple byte
access with a serial interface. */
Expand Down
8 changes: 4 additions & 4 deletions src/LSM6DSLSensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ class LSM6DSLSensor
LSM6DSLStatusTypeDef Set_G_ODR_When_Enabled(float odr);
LSM6DSLStatusTypeDef Set_X_ODR_When_Disabled(float odr);
LSM6DSLStatusTypeDef Set_G_ODR_When_Disabled(float odr);

/* Configuration */
uint8_t address;

/* Helper classes. */
TwoWire *dev_i2c;


/* Configuration */
uint8_t address;

uint8_t X_isEnabled;
float X_Last_ODR;
uint8_t G_isEnabled;
Expand Down

0 comments on commit e9ab495

Please sign in to comment.