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:
Luis Ubieda 2025-02-18 17:32:31 -05:00 committed by Benjamin Cabé
commit 5847680e1e
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);