Skip to content

Conversation

@zephyrbot
Copy link

@zephyrbot zephyrbot commented Jul 27, 2024

Backport 5474b61 from #75970.

Fixes #75256
Fixes #75257

There were code paths that could have lead to divide by zero given an
invalid scale setting for accel or gyro. In practice this should be an
invalid setup even before getting to these conversion functions. The
conversion functions now better show all valid values are accounted for
by using CODE_UNREACHABLE in the default case.

Signed-off-by: Tom Burdick <[email protected]>
(cherry picked from commit 5474b61)
@nashif nashif merged commit 79b78b8 into v3.7-branch Aug 6, 2024
@nashif nashif deleted the backport-75970-to-v3.7-branch branch August 6, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Sensors Sensors Backport Backport PR and backport failure issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants