aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLiio Chen <liio@qq.com>2014-05-29 17:42:05 +0800
committerLiio Chen <liio@qq.com>2014-05-29 17:42:05 +0800
commitbb6b442ca66a8349eb934a43b5886f44c2b7ab87 (patch)
tree4b0a4ad0eddc8c143d6272bd9d0dbd75ee6622f1 /src
parent83edab4d593b2cb92dae713d705255aeca4b3040 (diff)
downloadpx4-firmware-bb6b442ca66a8349eb934a43b5886f44c2b7ab87.tar.gz
px4-firmware-bb6b442ca66a8349eb934a43b5886f44c2b7ab87.tar.bz2
px4-firmware-bb6b442ca66a8349eb934a43b5886f44c2b7ab87.zip
Magnetometer data is not update
Magnetometer is not updated during a read operation, because the function "lsm303d_mag::measure" is not called. ”!!!JUST A GUESS!!!“
Diffstat (limited to 'src')
-rw-r--r--src/drivers/lsm303d/lsm303d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp
index 4ca8b5e42..8bf76dcc3 100644
--- a/src/drivers/lsm303d/lsm303d.cpp
+++ b/src/drivers/lsm303d/lsm303d.cpp
@@ -880,7 +880,7 @@ LSM303D::mag_read(struct file *filp, char *buffer, size_t buflen)
/* manual measurement */
_mag_reports->flush();
- measure();
+ _mag->measure();
/* measurement will have generated a report, copy it out */
if (_mag_reports->get(mrb))