diff --git a/drivers/adxl345/adxl345.c b/drivers/adxl345/adxl345.c index 60dd4c5d0533210379fd9a4181cb171fb808e38d..183fbb1ff40b3f30177073cb06a7c5c2d4618d43 100644 --- a/drivers/adxl345/adxl345.c +++ b/drivers/adxl345/adxl345.c @@ -34,6 +34,8 @@ #define ADXL345_BUS (dev->params->i2c) #define ADXL345_ADDR (dev->params->addr) +#define ADXL345_PARAM_SCALE_FACTOR (4) + int adxl345_init(adxl345_t *dev, const adxl345_params_t* params) { uint8_t reg; diff --git a/drivers/adxl345/include/adxl345_params.h b/drivers/adxl345/include/adxl345_params.h index 8f42b3139a66be86f8336996e228dd20a13397ab..b465fa25626b481cdb4ec020bb9da8f9ec4be9a0 100644 --- a/drivers/adxl345/include/adxl345_params.h +++ b/drivers/adxl345/include/adxl345_params.h @@ -54,8 +54,6 @@ extern "C" { #define ADXL345_PARAM_OFFSET { 0, 0, 0 } #endif -#define ADXL345_PARAM_SCALE_FACTOR (4) - #ifndef ADXL345_PARAMS #define ADXL345_PARAMS { .i2c = ADXL345_PARAM_I2C, \ .addr = ADXL345_PARAM_ADDR, \