sensor: adxl367 and adxl372: fix build-failure with streaming mode
These two sensors do not build with asserts enabled as they're referencing a non-existent variable `pkt_size`. Replaced for what (AFAIK) is the intended variable. Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
parent
c06202c176
commit
5847680e1e
2 changed files with 2 additions and 2 deletions
|
@ -363,7 +363,7 @@ static void adxl367_process_fifo_samples_cb(struct rtio *r, const struct rtio_sq
|
|||
|
||||
((struct adxl367_fifo_data *)buf)->fifo_byte_count = read_len;
|
||||
|
||||
__ASSERT_NO_MSG(read_len % pkt_size == 0);
|
||||
__ASSERT_NO_MSG(read_len % packet_size == 0);
|
||||
|
||||
uint8_t *read_buf = buf + sizeof(*hdr);
|
||||
|
||||
|
|
|
@ -249,7 +249,7 @@ static void adxl372_process_fifo_samples_cb(struct rtio *r, const struct rtio_sq
|
|||
|
||||
((struct adxl372_fifo_data *)buf)->fifo_byte_count = read_len;
|
||||
|
||||
__ASSERT_NO_MSG(read_len % pkt_size == 0);
|
||||
__ASSERT_NO_MSG(read_len % sample_set_size == 0);
|
||||
|
||||
uint8_t *read_buf = buf + sizeof(*hdr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue