mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
AP_InertialSensor: fixed missing checked register goto
thanks to Francisco for spotting
This commit is contained in:
parent
49856c37f2
commit
8d19808152
@ -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…
Reference in New Issue
Block a user