mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #7243 from smlng/drivers/adxl345/fix_const
drivers, adxl345: fix constness in adxl345_init
This commit is contained in:
commit
e4cc780f71
@ -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;
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user