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