Skip to content

Commit 0d7c751

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/sensor/st/lis2dux12/lis2dux12_rtio_stream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ static void lis2dux12_read_status_cb(struct rtio *r, const struct rtio_sqe *sqe,
390390
rtio_iodev_sqe_ok(lis2dux12->streaming_sqe, 0);
391391
lis2dux12->streaming_sqe = NULL;
392392
gpio_pin_interrupt_configure_dt(irq_gpio, GPIO_INT_EDGE_TO_ACTIVE);
393+
394+
return;
393395
}
394396

395397
/*

0 commit comments

Comments
 (0)