summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/motion_sense.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index f37b284268..6a93e15dde 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -232,7 +232,7 @@ static int motion_sense_set_ec_rate_from_ap(
* One will have a delay guarantee to be less than its ODR.
*/
if (SECOND * 1100 / odr_mhz > new_rate_us)
- new_rate_us = new_rate_us / 95 * 100;
+ new_rate_us = new_rate_us * 95 / 100;
end_set_ec_rate_from_ap:
return MAX(new_rate_us, motion_min_interval);