summaryrefslogtreecommitdiff
path: root/driver/gyro_l3gd20h.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/gyro_l3gd20h.c')
-rw-r--r--driver/gyro_l3gd20h.c3
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);