From a645822ac68d13ea2ea394ecf7a047118b2a1ca5 Mon Sep 17 00:00:00 2001 From: JacobCrabill Date: Tue, 24 Mar 2020 13:47:08 -0700 Subject: [PATCH] BMI088: Bug fix scheduling interval. --- src/drivers/imu/bmi088/BMI088_gyro.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/imu/bmi088/BMI088_gyro.cpp b/src/drivers/imu/bmi088/BMI088_gyro.cpp index 009e9095ee..d5952c8125 100644 --- a/src/drivers/imu/bmi088/BMI088_gyro.cpp +++ b/src/drivers/imu/bmi088/BMI088_gyro.cpp @@ -34,6 +34,7 @@ #include "BMI088_gyro.hpp" #include "BMI088_accel.hpp" +using namespace time_literals; /* * Global variable of the accelerometer temperature reading, to read it in the bmi055_gyro driver. @@ -262,7 +263,7 @@ void BMI088_gyro::start() { /* start polling at the specified rate */ - ScheduleOnInterval(BMI088_GYRO_DEFAULT_RATE - BMI088_TIMER_REDUCTION, 1000); + ScheduleOnInterval((1_s / BMI088_GYRO_DEFAULT_RATE) - BMI088_TIMER_REDUCTION, 1000); } void