diff options
author | Andrew Tridgell <andrew@tridgell.net> | 2015-01-01 08:44:12 +1100 |
---|---|---|
committer | Andrew Tridgell <andrew@tridgell.net> | 2015-01-01 08:51:42 +1100 |
commit | 5c1da70d0c738c0614ea1652a510f126c31369d8 (patch) | |
tree | 20ec1a2cb11d6ee618565118a8237fc90d21a7e2 /src/drivers/l3gd20 | |
parent | 1bb3974c8429b2e680d258d37ad42790b608564b (diff) | |
download | px4-firmware-5c1da70d0c738c0614ea1652a510f126c31369d8.tar.gz px4-firmware-5c1da70d0c738c0614ea1652a510f126c31369d8.tar.bz2 px4-firmware-5c1da70d0c738c0614ea1652a510f126c31369d8.zip |
l3gd20: fixed reporting of error count
Diffstat (limited to 'src/drivers/l3gd20')
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index 5c9235017..4e2f198b8 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -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) { |