BMI055: Bug fix scheduling interval.

This commit is contained in:
JacobCrabill 2020-03-24 13:59:36 -07:00 committed by Beat Küng
parent a645822ac6
commit f0dde45303
1 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,8 @@
#include "BMI055_gyro.hpp"
using namespace time_literals;
/*
list of registers that will be checked in check_registers(). Note
that ADDR_WHO_AM_I must be first in the list.
@ -252,7 +254,7 @@ void
BMI055_gyro::start()
{
/* start polling at the specified rate */
ScheduleOnInterval(BMI055_GYRO_DEFAULT_RATE - BMI055_TIMER_REDUCTION, 1000);
ScheduleOnInterval((1_s / BMI055_GYRO_DEFAULT_RATE) - BMI055_TIMER_REDUCTION, 1000);
}
void