mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/adxl345: move scale factor macro to internal implem
This commit is contained in:
parent
7a39f03986
commit
f2c1355560
@ -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;
|
||||
|
@ -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, \
|
||||
|
Loading…
Reference in New Issue
Block a user