BMI088: Bug fix scheduling interval.

This commit is contained in:
JacobCrabill
2020-03-24 13:47:08 -07:00
committed by Beat Küng
parent 1288db9314
commit a645822ac6
+2 -1
View File
@@ -34,6 +34,7 @@
#include "BMI088_gyro.hpp" #include "BMI088_gyro.hpp"
#include "BMI088_accel.hpp" #include "BMI088_accel.hpp"
using namespace time_literals;
/* /*
* Global variable of the accelerometer temperature reading, to read it in the bmi055_gyro driver. * Global variable of the accelerometer temperature reading, to read it in the bmi055_gyro driver.
@@ -262,7 +263,7 @@ void
BMI088_gyro::start() BMI088_gyro::start()
{ {
/* start polling at the specified rate */ /* 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 void