sensor: adxl372: Fix build time issue due to shift
variable namespace
Change `data->header.shift` to `data->shift`, as it is not contained within the header struct. Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
parent
5847680e1e
commit
6e897ccd69
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ static int adxl372_decode_stream(const uint8_t *buffer, struct sensor_chan_spec
|
|||
memset(data, 0, sizeof(struct sensor_three_axis_data));
|
||||
data->header.base_timestamp_ns = enc_data->timestamp;
|
||||
data->header.reading_count = 1;
|
||||
data->header.shift = 11; /* Sensor shift */
|
||||
data->shift = 11; /* Sensor shift */
|
||||
|
||||
buffer += sizeof(struct adxl372_fifo_data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue