Skip to content

Commit

Permalink
drivers, adxl345: fix constness in adxl345_init
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng committed Jun 26, 2017
1 parent 72e167b commit 8664ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/adxl345/adxl345.c
Expand Up @@ -34,7 +34,7 @@
#define BUS (dev->i2c)
#define ADDR (dev->addr)

int adxl345_init(adxl345_t *dev, adxl345_params_t* params)
int adxl345_init(adxl345_t *dev, const adxl345_params_t* params)
{
uint8_t reg;

Expand Down
2 changes: 1 addition & 1 deletion drivers/include/adxl345.h
Expand Up @@ -168,7 +168,7 @@ typedef struct {
* @return ADXL345_NOI2C if initialization of I2C bus failed
* @return ADXL345_NODEV if accelerometer test failed
*/
int adxl345_init(adxl345_t *dev, adxl345_params_t* params);
int adxl345_init(adxl345_t *dev, const adxl345_params_t* params);
/**
* @brief Read accelerometer's data
*
Expand Down

0 comments on commit 8664ca3

Please sign in to comment.