AP_InertialSensor: fixed logic bug in MPU6000 init

thanks to coverity
This commit is contained in:
Andrew Tridgell 2015-06-20 14:53:04 +10:00
parent 248bf8c5a3
commit 4eab27abe9
1 changed files with 0 additions and 2 deletions

View File

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