mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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