| commit | aa3f3d943affd505e07a449bab5da382ba521383 | [log] [tgz] |
|---|---|---|
| author | Armando Visconti <armando.visconti@st.com> | Tue Nov 02 10:27:10 2021 +0100 |
| committer | Maureen Helm <maureen.helm@intel.com> | Wed Nov 03 08:16:45 2021 -0500 |
| tree | df62ace212c6f497f022f5682597d8b285c21ab9 | |
| parent | 20bdb6ee214bf9fe37d4258731055f0dea3feeb1 [diff] |
drivers/sensor: lsm6ds0: Fix SENSOR_DEG2RAD_DOUBLE macro In order to convert from degrees to radiants the SENSOR_DEG2RAD_DOUBLE macro must divide the argument by 180 degrees and multiply by PI radiants, and not the other way around. Please note that same macro is already defined in the correct way in other sensor drivers as well. (Fix #39483) Signed-off-by: Armando Visconti <armando.visconti@st.com>