Skip to content

Commit df1832e

Browse files
aviscontidanieldegrasse
authored andcommitted
drivers/sensor: lsm6dsv16x: add 'return' if data has to be dropped
In lsm6dsv16x_read_status_cb() add a return instruction in case of SENSOR_STREAM_DATA_NOP/SENSOR_STREAM_DATA_DROP. Fixes: CID 529864 Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 parent 79c098a commit df1832e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/sensor/st/lsm6dsv16x/lsm6dsv16x_rtio_stream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,8 @@ static void lsm6dsv16x_read_status_cb(struct rtio *r, const struct rtio_sqe *sqe
605605
if (!ON_I3C_BUS(config) || (I3C_INT_PIN(config))) {
606606
gpio_pin_interrupt_configure_dt(irq_gpio, GPIO_INT_EDGE_TO_ACTIVE);
607607
}
608+
609+
return;
608610
}
609611

610612
/*

0 commit comments

Comments
 (0)