mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 04:03:33 +08:00
l3gd20: fixed reporting of error count
This commit is contained in:
@@ -993,7 +993,7 @@ L3GD20::measure()
|
||||
* 74 from all measurements centers them around zero.
|
||||
*/
|
||||
report.timestamp = hrt_absolute_time();
|
||||
report.error_count = 0; // not recorded
|
||||
report.error_count = perf_event_count(_bad_registers);
|
||||
|
||||
switch (_orientation) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user