mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Fixe for wrong perf counter increment in ina226 driver
This commit is contained in:
parent
e6bec31890
commit
d98cf2f719
@ -279,14 +279,13 @@ INA226::collect()
|
||||
0.0
|
||||
);
|
||||
ret = -1;
|
||||
perf_count(_comms_errors);
|
||||
}
|
||||
|
||||
if (ret != OK) {
|
||||
PX4_DEBUG("error reading from sensor: %d", ret);
|
||||
perf_count(_comms_errors);
|
||||
}
|
||||
|
||||
perf_count(_comms_errors);
|
||||
perf_end(_sample_perf);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user