l3gd20: fixed reporting of error count

This commit is contained in:
Andrew Tridgell
2015-01-01 08:44:12 +11:00
parent 1bb3974c84
commit 5c1da70d0c

View File

@@ -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) {