mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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),
|
||||
(uint8_t *)&mpu_report,
|
||||
sizeof(mpu_report))) {
|
||||
perf_end(_sample_perf);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user