Fixe for wrong perf counter increment in ina226 driver

This commit is contained in:
dino 2020-01-29 14:26:57 +01:00 committed by Beat Küng
parent e6bec31890
commit d98cf2f719

View File

@ -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;
}