sensor: adxl3xx: Move run-time modification of ODR from cfg to data
Config struct is constant and attempting to modify it triggers a fault. Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
parent
0a71e95c5a
commit
5a9ff03c21
6 changed files with 8 additions and 6 deletions
|
@ -214,7 +214,7 @@ static void adxl372_process_fifo_samples_cb(struct rtio *r, const struct rtio_sq
|
|||
hdr->is_fifo = 1;
|
||||
hdr->timestamp = data->timestamp;
|
||||
hdr->int_status = data->status1;
|
||||
hdr->accel_odr = cfg->odr;
|
||||
hdr->accel_odr = data->odr;
|
||||
hdr->sample_set_size = sample_set_size;
|
||||
|
||||
if ((cfg->fifo_config.fifo_format == ADXL372_X_FIFO) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue