Skip to content
Commit 5474b611 authored by Tom Burdick's avatar Tom Burdick Committed by Anas Nashif
Browse files

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: default avatarTom Burdick <thomas.burdick@intel.com>
parent 04e3d008
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment