mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 06:11:37 +08:00
mpu9250:Stop per counter on failed read
This commit is contained in:
committed by
Lorenz Meier
parent
fbf6532c25
commit
f722614ec0
@@ -1300,6 +1300,7 @@ MPU9250::measure()
|
|||||||
if (OK != _interface->read(MPU9250_SET_SPEED(MPUREG_INT_STATUS, MPU9250_HIGH_BUS_SPEED),
|
if (OK != _interface->read(MPU9250_SET_SPEED(MPUREG_INT_STATUS, MPU9250_HIGH_BUS_SPEED),
|
||||||
(uint8_t *)&mpu_report,
|
(uint8_t *)&mpu_report,
|
||||||
sizeof(mpu_report))) {
|
sizeof(mpu_report))) {
|
||||||
|
perf_end(_sample_perf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user