Skip to content
Commit 21321fba authored by Kevin Townsend's avatar Kevin Townsend Committed by Christopher Friedt
Browse files

drivers: sensor: lsm303dlhc_mag: Fix gain factor



The magnetometer on the LSM303DLHC has a different gain conversion
factor for LSB to Gauss for the Z axis than it does for X, Y. This
commit takes into account the different conversion factors, and
adds the correct coefficients for each gain setting and axis.

Signed-off-by: default avatarKevin Townsend <kevin.townsend@linaro.org>
parent f9e2fc3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment