Skip to content

drivers: sensor: fix condition in SQE acquisition check #91207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2025

Conversation

kartben
Copy link
Collaborator

@kartben kartben commented Jun 6, 2025

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

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

Signed-off-by: Benjamin Cabé <[email protected]>
teburd
teburd previously approved these changes Jun 6, 2025
@teburd teburd added the bug The issue is a bug, or the PR is fixing a bug label Jun 6, 2025
ubieda
ubieda previously approved these changes Jun 6, 2025
@ubieda ubieda added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Jun 6, 2025
Corrected the logical operator (||, not |) in the condition that checks
for successful acquisition of RTIO SQEs.

Signed-off-by: Benjamin Cabé <[email protected]>
@kartben kartben dismissed stale reviews from ubieda and teburd via 35a66f6 June 6, 2025 20:58
@kartben kartben changed the title drivers: sensor: icm45686: fix condition in SQE acquisition check drivers: sensor: fix condition in SQE acquisition check Jun 6, 2025
@kartben
Copy link
Collaborator Author

kartben commented Jun 6, 2025

oops - there was another one :) Guess I maybe helped stopped the copy-paste contagion!

Copy link

sonarqubecloud bot commented Jun 6, 2025

@teburd
Copy link
Collaborator

teburd commented Jun 6, 2025

hah, almost like we should make int rc = rtio_sqe_acquire_n(r, num, &sqes) or something

telling, very telling

@ubieda
Copy link
Member

ubieda commented Jun 6, 2025

Looks like I'm the culprit of these. Thanks!

@dkalowsk dkalowsk merged commit fd7c3b4 into zephyrproject-rtos:main Jun 9, 2025
29 checks passed
@kartben kartben deleted the bugtdk branch June 9, 2025 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Sensors Sensors bug The issue is a bug, or the PR is fixing a bug size: XS A PR changing only a single line of code Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants