Skip to content

Commit 4708389

Browse files
committed
drivers: sensor: adxl345: Remove duplicate odr config
Removes a duplicate line in the adxl345 accelerometer driver setting the output data rate (odr) configuration to a hard-coded value of 25 Hz. Keep the other line that gets the value from the devicetree property. Signed-off-by: Maureen Helm <[email protected]>
1 parent 9cf0f4c commit 4708389

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/sensor/adi/adxl345/adxl345.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,6 @@ static int adxl345_init(const struct device *dev)
531531
.fifo_config.fifo_trigger = ADXL345_INT2, \
532532
.fifo_config.fifo_samples = SAMPLE_NUM, \
533533
.op_mode = TRUE, \
534-
.odr = ADXL345_RATE_25HZ, \
535534

536535
#define ADXL345_CONFIG_SPI(inst) \
537536
{ \

0 commit comments

Comments
 (0)