Browse Source

AP_InertialSensor: fixed logic bug in MPU6000 init

thanks to coverity
master
Andrew Tridgell 10 years ago
parent
commit
4eab27abe9
  1. 2
      libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.cpp

2
libraries/AP_InertialSensor/AP_InertialSensor_MPU6000.cpp

@ -236,8 +236,6 @@ bool AP_InertialSensor_MPU6000::_init_sensor(void) @@ -236,8 +236,6 @@ bool AP_InertialSensor_MPU6000::_init_sensor(void)
if (_data_ready()) {
_spi_sem->give();
break;
} else {
return false;
}
_spi_sem->give();
}

Loading…
Cancel
Save