ADXL362: fix write to FIFO_SAMPLES register
This patch removes a superfluous write to the INTMAP1 register that happens because the byte count was previously wrong. Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
This commit is contained in:
parent
8891943117
commit
ad3d8e8581
1 changed files with 1 additions and 1 deletions
|
@ -354,7 +354,7 @@ static int adxl362_fifo_setup(const struct device *dev, uint8_t mode,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = adxl362_set_reg(dev, water_mark_lvl, ADXL362_REG_FIFO_SAMPLES, 2);
|
ret = adxl362_set_reg(dev, water_mark_lvl, ADXL362_REG_FIFO_SAMPLES, 1);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue