AP_InertialSensor: reduce checked register count

thanks to Francisco for spotting this
This commit is contained in:
Andrew Tridgell 2016-11-11 08:05:28 +11:00
parent 4be8f05ad4
commit 49856c37f2

View File

@ -473,8 +473,8 @@ bool AP_InertialSensor_LSM9DS0::_hardware_init()
}
// setup for register checking
_dev_gyro->setup_checked_registers(6);
_dev_accel->setup_checked_registers(5);
_dev_gyro->setup_checked_registers(5);
_dev_accel->setup_checked_registers(4);
for (tries = 0; tries < 5; tries++) {
_dev_gyro->set_speed(AP_HAL::Device::SPEED_LOW);