Skip to content
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

drivers: sensor: sensor_shell: fix infinite loop when doing sensor get #72925

Merged
merged 1 commit into from
May 17, 2024

Conversation

ycsin
Copy link
Member

@ycsin ycsin commented May 17, 2024

Should increment ch.chan_idx instead of channel_idx, otherwise we will be stucked in the loop forever.

Should increment `ch.chan_idx` instead of `channel_idx`,
otherwise we will be stucked in the loop forever.

Signed-off-by: Yong Cong Sin <[email protected]>
@ycsin ycsin added bug The issue is a bug, or the PR is fixing a bug Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. labels May 17, 2024
@ycsin ycsin requested a review from teburd May 17, 2024 10:37
@ycsin ycsin added the area: Sensors Sensors label May 17, 2024
@ycsin ycsin added the priority: high High impact/importance bug label May 17, 2024
@teburd
Copy link
Collaborator

teburd commented May 17, 2024

I believe @ubieda had a patch for this before I pushed that last change, I should have fixed it then, apologies. Thanks for the fix. This is exactly why the shell test is awesome.

Copy link
Member

@ubieda ubieda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was caught here: #71093 (review).

I'm good with getting this one in and closing mine (#72542)

@ycsin ycsin requested review from carlescufi and nashif May 17, 2024 12:29
@carlescufi carlescufi merged commit 5f1e1c7 into zephyrproject-rtos:main May 17, 2024
30 checks passed
@ycsin ycsin deleted the pr/fix_sensor_shell_loop branch May 17, 2024 12:40
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 Hotfix Fix for issues blocking development, i.e. CI issues, tests failing in CI, etc. priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants