Browse Source

AP_InertialSensor: fixed missing checked register goto

thanks to Francisco for spotting
mission-4.1.18
Andrew Tridgell 8 years ago
parent
commit
8d19808152
  1. 2
      libraries/AP_InertialSensor/AP_InertialSensor_MPU9250.cpp

2
libraries/AP_InertialSensor/AP_InertialSensor_MPU9250.cpp

@ -522,7 +522,7 @@ bool AP_InertialSensor_MPU9250::_read_sample() @@ -522,7 +522,7 @@ bool AP_InertialSensor_MPU9250::_read_sample()
if (!_block_read(MPUREG_FIFO_COUNTH, rx, 2)) {
hal.console->printf("MPU9250: error in fifo read\n");
return true;
goto check_registers;
}
bytes_read = uint16_val(rx, 0);

Loading…
Cancel
Save