aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/hmc5883/hmc5883.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-10-06 14:17:37 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-10-06 14:17:37 +0200
commit90c4664dce0e3613e545eabb208aa5fbb02d90e9 (patch)
tree322cf10e5338bf48d30be289dc9124a9c64dbd2b /src/drivers/hmc5883/hmc5883.cpp
parent4ceddfdd92343277be3c6231cbd2a547e8b7bc57 (diff)
parent6a784b770e4b9dff24effc2643711c9da2b0efab (diff)
downloadpx4-firmware-90c4664dce0e3613e545eabb208aa5fbb02d90e9.tar.gz
px4-firmware-90c4664dce0e3613e545eabb208aa5fbb02d90e9.tar.bz2
px4-firmware-90c4664dce0e3613e545eabb208aa5fbb02d90e9.zip
Merged status changes
Diffstat (limited to 'src/drivers/hmc5883/hmc5883.cpp')
-rw-r--r--src/drivers/hmc5883/hmc5883.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/hmc5883/hmc5883.cpp b/src/drivers/hmc5883/hmc5883.cpp
index 5e891d7bb..5f0ce4ff8 100644
--- a/src/drivers/hmc5883/hmc5883.cpp
+++ b/src/drivers/hmc5883/hmc5883.cpp
@@ -791,6 +791,7 @@ HMC5883::collect()
/* this should be fairly close to the end of the measurement, so the best approximation of the time */
new_report.timestamp = hrt_absolute_time();
+ new_report.error_count = perf_event_count(_comms_errors);
/*
* @note We could read the status register here, which could tell us that