diff options
-rw-r--r-- | driver/gyro_l3gd20h.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver/gyro_l3gd20h.c b/driver/gyro_l3gd20h.c index 5d1fd3e1e0..0986080285 100644 --- a/driver/gyro_l3gd20h.c +++ b/driver/gyro_l3gd20h.c @@ -366,8 +366,7 @@ static int read(const struct motion_sensor_t *s, vector_3_t v) for (i = X; i <= Z; i++) v[i] = ((int16_t)((raw[i * 2 + 1] << 8) | raw[i * 2])); - if (s->rot_standard_ref) - rotate(v, *s->rot_standard_ref, v); + rotate(v, *s->rot_standard_ref, v); /* apply offset in the device coordinates */ range = get_range(s); |