Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
icm42688: Fix divide by zero potential
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)
- Loading branch information