mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Fixe for wrong perf counter increment in ina226 driver
This commit is contained in:
@@ -279,14 +279,13 @@ INA226::collect()
|
|||||||
0.0
|
0.0
|
||||||
);
|
);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
perf_count(_comms_errors);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != OK) {
|
if (ret != OK) {
|
||||||
PX4_DEBUG("error reading from sensor: %d", ret);
|
PX4_DEBUG("error reading from sensor: %d", ret);
|
||||||
|
perf_count(_comms_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
perf_count(_comms_errors);
|
|
||||||
perf_end(_sample_perf);
|
perf_end(_sample_perf);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user