diff options
Diffstat (limited to 'test/motion_angle.c')
-rw-r--r-- | test/motion_angle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/motion_angle.c b/test/motion_angle.c index 06872a7a41..30f663de14 100644 --- a/test/motion_angle.c +++ b/test/motion_angle.c @@ -26,7 +26,7 @@ /* Array units is in m/s^2 - old matrix format. */ int filler(const struct motion_sensor_t *s, const float v) { - return (v * MOTION_SCALING_FACTOR) / s->drv->get_range(s); + return (v * MOTION_SCALING_FACTOR) / s->current_range; } static int test_lid_angle_less180(void) |