drivers: sensor: paa3905: fix condition in SQE acquisition check

Corrected the logical operator (||, not |) in the condition that checks
for successful acquisition of RTIO SQEs.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-06 22:58:10 +02:00 committed by Dan Kalowsky
commit fd7c3b4c1c

View file

@ -82,7 +82,7 @@ static void paa3905_submit_one_shot(const struct device *dev, struct rtio_iodev_
struct rtio_sqe *read_sqe = rtio_sqe_acquire(data->rtio.ctx);
struct rtio_sqe *complete_sqe = rtio_sqe_acquire(data->rtio.ctx);
if (!write_sqe || !read_sqe | !complete_sqe) {
if (!write_sqe || !read_sqe || !complete_sqe) {
LOG_ERR("Failed to acquire RTIO SQEs");
rtio_iodev_sqe_err(iodev_sqe, -ENOMEM);
return;