mpu9250:Stop per counter on failed read

This commit is contained in:
David Sidrane
2017-07-07 16:33:07 -10:00
committed by Lorenz Meier
parent fbf6532c25
commit f722614ec0

View File

@@ -1300,6 +1300,7 @@ MPU9250::measure()
if (OK != _interface->read(MPU9250_SET_SPEED(MPUREG_INT_STATUS, MPU9250_HIGH_BUS_SPEED),
(uint8_t *)&mpu_report,
sizeof(mpu_report))) {
perf_end(_sample_perf);
return;
}