Browse Source

AP_InertialSensor: LSM9DS0: Fixed wrong call to _register_read_xm()

mission-4.1.18
raspilot 10 years ago committed by Lucas De Marchi
parent
commit
557beb4bb1
  1. 2
      libraries/AP_InertialSensor/AP_InertialSensor_LSM9DS0.cpp

2
libraries/AP_InertialSensor/AP_InertialSensor_LSM9DS0.cpp

@ -669,7 +669,7 @@ bool AP_InertialSensor_LSM9DS0::_gyro_data_ready() @@ -669,7 +669,7 @@ bool AP_InertialSensor_LSM9DS0::_gyro_data_ready()
return _drdy_pin_g->read() != 0;
}
uint8_t status = _register_read_xm(STATUS_REG_G);
uint8_t status = _register_read_g(STATUS_REG_G);
return status & STATUS_REG_G_ZYXDA;
}

Loading…
Cancel
Save