aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/hmc5883/hmc5883.cpp
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-10-11 14:05:11 +0200
committerJulian Oes <julian@oes.ch>2013-10-11 14:05:11 +0200
commit2d23d5fd4ec3a00ae18c63304a3b1b3905d7de66 (patch)
treedfe21bf4ddd3b10e2e92cd3d6be206de5a445616 /src/drivers/hmc5883/hmc5883.cpp
parent326f241185f45d9e2d4377e8096a8a2f05f65b0d (diff)
parent1306c9de7b946783ff1143bb42a33734e9380e2c (diff)
downloadpx4-firmware-2d23d5fd4ec3a00ae18c63304a3b1b3905d7de66.tar.gz
px4-firmware-2d23d5fd4ec3a00ae18c63304a3b1b3905d7de66.tar.bz2
px4-firmware-2d23d5fd4ec3a00ae18c63304a3b1b3905d7de66.zip
Merge remote-tracking branch 'px4/master' into pwm_ioctls
Conflicts: src/drivers/px4io/px4io.cpp
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